Javascript and Flash Forms

I am trying to do some Javascript with a Flash Form and it is
failing. I have a field with a value in the field name so I dont
have to use labels. I know with Javascript that onFocus, the field
will clear. Is that possible in a Flash Form.
Don

Use actionscript, like so
<cfinput type="Text" name="txt_box" value="Initial Value"
onFocus="txt_box.text=''">
For readability the onFocus is
" txt_box.text = ' ' "
Ken

Similar Messages

  • XML, PHP and Flash forms

    After searching several tutorials and forum posts, I still am
    puzzled at how to get started on this.
    I want to enable my client to upload changes to the XML file
    used on his site without knowing anything about XML. He also wants
    to upload images which are referenced in the XML. So, I am assuming
    that I create a form that allows him to type in changes to sections
    and select an image on his local drive and submit it to a PHP
    script on the server which will, in turn generate/update the XML
    and upload the image(s).
    Is this correct or am I going about it the wrong way? Of
    course, I should just tell him he'll have to pay me to update the
    site. ;-) I'm really confused about how to start this whole thing
    in the planning stage. I just need a little direction then I can
    research the rest.
    thanks!

    aniebel wrote:
    > So, do I make fields (variables) for each node in the
    XML? And can I use any
    > PHP script that converts my loadvars to XML? I'm not
    sure what to search for,
    > specifically. I hope I'm not in over my head but it
    seems getting into these
    > predicaments is a great way to learn.
    >
    are you making this admin interface in flash then? personally
    I would
    steer clear of that as it will be harder to debug - doing it
    in HTML
    will be much more straightforward, and if you do it right you
    can change
    to using a flash front end in future.
    Handling file uploads in PHP is a little tricky but there are
    loads of
    good pages of advice on using PHP on the web. Here's a good
    place to
    start as there's lots of notes by other users:
    http://us2.php.net/manual/en/function.is-uploaded-file.php
    XML with PHP I have only done once - and I think that was
    just reading
    it and not writing it. Should be OK though, again, lots of
    help
    available online!
    MOLOKO
    Macromedia Certified Flash MX 2004 Developer
    Macromedia Certified Flash MX Developer
    ::remove _underwear_ to reply::
    'There ain't no devil - it's just God when he's drunk' Tom
    Waits
    GCM/CS/IT/MC d-- S++:- a- C++ U--- P+ L++ !E W+++$ N++ O? K+
    w+++$ !O M+
    VMS? PS+++ PE- Y PGP+ t+ 5-- X-- R* tv++ b++++ DI++++ D+ G e
    h-- r+ y++

  • Javascript and Flash (defining variables properly)

    OK, I'm curious if from flash can you call client side
    JavaScript functions that exist outside the flash?
    I'm trying to get something to work (there's another post
    about it on here) but when I click the submit button, it doesn't
    seem to be trying to call the javascript function with the
    information I have the flash module collecting... any
    ideas/help?

    Well, now I have it working somewhat, but the variables I've
    defined along the way aren't being passed through. I guess my new
    question would be how to properly define the variable and collect
    the information as the user goes through, then call it into the
    function at the end when they click the submit button.
    Example... right now I have people click their selection and
    the button is supposed to collect that variable selection and send
    them on to their next selection option:
    on (release) {
    a="Bare";
    //Movieclip GotoAndPlay Behavior
    this.gotoAndPlay("37");
    //End Behavior
    Then they do that a few more times with different options...
    At the end, when they click submit, this is what happens:
    on (release) {
    var strProductCode = "'" + a + "','" + b + "', '" + c + "',
    '" + d + "'";
    var strJavaScriptCall = "javascript:SubmitCustomBoot(" +
    strProductCode + ");";
    getURL(strJavaScriptCall);
    But the info going to the cart is missing the variables.
    Obviously, I'm not getting those collected properly.
    Ideas??? :)

  • Issues with JavaScript and Flash in Mozilla

    I'm wondering if any of you have seen this, and if there's a
    fix?
    I have flash content that plays in both IE and Mozilla (read:
    NS, FF), and I am able to send it commands to play, stop,
    gotoFrame, etc. However, while in IE I am able to access
    percentLoaded() from the flash object, in Mozilla, the javaScript
    simply hangs. No errors, no crashes. Just stops. The rest of the
    browser (and new javascript events) continue to function.. but the
    original javascript is halted, like it's waiting for a response
    that never comes. I have noted other methods where I am expecting
    to get something /back/ from Flash also not working. Ideas?
    Much thanks,
    -Bez

    You're welcome.
    The only workarounds to this problem is going back to Safari 4,
    You can revert to 4.0.5, instructions here.
    http://appletoolbox.com/2010/06/downgrade-from-safari-5-0-to-safari-4-0-5/

  • Javascript and Flash

    I am trying to create a pop up window from flash using
    javascript. I got this code but I keep getting an error message.
    Can anyone tell me what's wrong with this?
    Any help greatly appreciated.
    article.onRelease = function() {
    getURL("javascript:NewWindow=window.open('scans/phagArticle.jpg','newWin','width=895,heigh t=1210,left=0,top=0,
    toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');
    NewWindow.focus();
    void(0);", _blank);

    TaylorTay619,
    >I am trying to create a pop up window from flash using
    > javascript. I got this code but I keep getting an error
    > message.
    What's the error message you're getting?
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Javascript and Flash AC fix

    I'm in the process of upgrading an older site with Flash
    content and have run into an issue with the Active Content 'fix'
    script.
    I have a Flash movie that pauses on load and only plays when
    the user clicks an HTML page button which triggers the Play()
    action via JS.
    If I allow DW8 to implement the AC code fix, this then
    prevents the Flash movie from responding to the JS event.
    Can anyone please advise what changes I should make to my JS
    code in order to target the movie correctly with the AC fix
    implemented?
    My current JS event code is as follows (which works OK
    without the AC fix):
    onClick="window.document.myMovie.Play();"
    All advice gratefully received!

    Use actionscript, like so
    <cfinput type="Text" name="txt_box" value="Initial Value"
    onFocus="txt_box.text=''">
    For readability the onFocus is
    " txt_box.text = ' ' "
    Ken

  • JavaScript and flash 8 publish

    Hi there,
    I am trying to close a browser window and am able to do so by
    using either of the attached code without changing the security
    settings of the player. I have to go to security settings and
    choose the options "always allow" and also browse to the file that
    I am trying to execute the code. I am publishing in flash 8. Is
    there a way to by bass the security settings or is there a
    different way to execute this code with out having to alter the
    security settings?
    Thanks dee

    <param name="allowScriptAccess" value="always" />
    Ah....I see put this in html and it works perfect.

  • Javascript and Flash method works on Firefox?

    Hi all. I saw an example where you can you a movieobject and
    the TGotoLabel() method to jump to a specif flash label through an
    html. It works in IE, but it doesn't in Firefox. Is this supported
    in Firefox at all, or what should I do.
    Thanks!

    This is what you should see under "plugins" in Opera:
    Make sure Flash Player is listed and enabled.
    It comes from the same place as the plug-in for Firefox, so one won't work if the other doesn't.
    If that doesn't work, try a clean install. http://forums.adobe.com/message/4041846

  • Javascript and jsp forms

    Hi,
    I have the following java code what I am trying to do is to use some java script to read values from the buttons. As per my thinking the javascript code when called should print out the no of radio buttons but what it is giving is undefined. Could somebody point out what I ma doing wrong???????
    Its already drawing me crazy.
    <dsp:form name="students" action="../../check.jsp" method="post">
                <P>books  </P>
          <INPUT type="radio" name="books" value="Java2InANutShell">
                                   Java 2 in a nutshell
                          </INPUT>
                          <br><br>
         <input type="button" value="Length" id="length"      name="Log In"  onclick="launchAutoWindow()"/>
    </dsp:form>
    function launchAutoWindow(id)
    alert(document.students.books.length);
    }

    You only have one radio with the name of "books" on
    the page.
    If you have only one, "document.students.books"
    evaluates directly to the radio object
    If there is more than one object with that name, it
    evaluates to an array of the objects. At that point,
    length would be defined.
    So if length is not defined, you know you only have
    one :-)
    Don't you just love javascript?Thanx mate. That solved the problem. I would have never figured it out myself. Thats kindaa silly but as long as it works ;)
    Thanx again.

  • JavaScript and PS CS6: Performance issue

    Hi folks
    I have to admit we are stuck in our development: We have written a Phothoshop Plugin unsing extensive JavaScript and Flash Panels / Action Script.
    The Javascripts would, eg. select a given layer. When running the Javascript in PS CS5 or 5.1 everything is smooth and snappy but we've noticed, that the same JavaScript running in PS CS6 takes up to 300% more time.
    Does anyone having observed the same performance issues?
    Would it be faster to address the specific layers by their native Layer ID's rather than their names?
    Why is there such a performance slow down with the same JavaScripts / ActionScript-FlashPanel between CS5 and CS6?
    We have already contacted [email protected] (we are solution partner silver) but they do not start acting if you are using your own JavaScripts....
    You are our last hope :-( 
    I can send you some of the code but I don't want it to be publicly exposed here.
    Thanks in advance,
    Andrash

    Hi, since nobody bothers to answer we might have to find out ourselfs.
    Maybe it is caused by the way we address layers throug the script?
    Which method are you using?
    Are you addressing the layers directly or are you just cicling throug an array of layers?
    Are you pointing for the layers by their native ID or rather their layer names?
    How do you trigger the script: by another script? From a flash panel (Flex / Action Script)?
    We are using Flash Panels to start the script. The script simply calls a layer by it's name (a numerical ID that we apply to the layer). The script shall look up that specific layer and check if there is some content on the layer. We created a logger to see where the heavy amount of time is consumed and it seems, that it is while jumping to the layer.
    In CS5 that was all a matter of a split second. Now in CS6 it takes a couple of seconds (4sec.). We asked ADOBE Techsupport for help, but they didn't even bother to look at the problem since we are working with self written code (as every developer does.....?!?!). I wonder what techsupport is good for if not answering techical problems like this one.
    I hope that, with your answers we might circle in the cause of the problem!
    Cheers,
    Andreas

  • About how javascript and actionscript exchange data

    I am a new one to Flex,
    my system need web page(html) exchange data with Flash(flex),
    because the data is not only a value, so need define a
    strucure to transfer the data.
    i dont know which type of data usually worked between
    javascript and action script?
    hopecan get some suggestion.
    is the xml object can be used here?
    hope can get detail suggestion.
    some example would be great!
    thanks!
    bellow is my project status:
    I have use write a simple program to success exchange data
    between flex(actionscript) and html(javascript),
    now i need design some structure to transfer data between
    action script and javascript.
    in my project:
    there is some text areas in html page, and other text areas
    in flash,
    we called text areas in html page is groupA text areas
    text areas in flash is groupB text areas.
    each textarea in GroupA has a corrosponding textarea in
    GroupB.
    1.
    when a textarea's text changed(this textarea is in
    groupA/GroupB)
    the corrosponding textarea's text must change
    inmidietely(textarea in GrroupB/GroupA)
    2.when falsh add a new textarea, html page must add a
    corrosponding textarea.

    HI!
    Not sure where are you stuck with this, if you already have
    been able to comunicate with javascript and flash it measn you
    already have used the external interface and you should know you
    can send any kind of data to flash, this includes XML or even
    serialized objects.
    I haven't test how big the data you can send to or from
    javascript can be, but what i've done sofar works pretty good with
    any value.
    If you are not using the externalInterface but the old
    fscommand() then you should read the external interface
    documentation:
    http://livedocs.adobe.com/flex/2/langref/flash/external/package-detail.html

  • About how javascript and onscript exchange data

    I am a new one to Flex,
    my system need web page(html) exchange data with Flash(flex),
    because the data is not only a value, so need define a
    strucure to transfer the data.
    i dont know which type of data usually worked between
    javascript and action script?
    hopecan get some suggestion.
    is the xml object can be used here?
    hope can get detail suggestion.
    some example would be great!
    thanks!
    bellow is my project status:
    I have use write a simple program to success exchange data
    between flex(actionscript) and html(javascript),
    now i need design some structure to transfer data between
    action script and javascript.
    in my project:
    there is some text areas in html page, and other text areas
    in flash,
    we called text areas in html page is groupA text areas
    text areas in flash is groupB text areas.
    each textarea in GroupA has a corrosponding textarea in
    GroupB.
    1.
    when a textarea's text changed(this textarea is in
    groupA/GroupB)
    the corrosponding textarea's text must change
    inmidietely(textarea in GrroupB/GroupA)
    2.when falsh add a new textarea, html page must add a
    corrosponding textarea.

    HI!
    Not sure where are you stuck with this, if you already have
    been able to comunicate with javascript and flash it measn you
    already have used the external interface and you should know you
    can send any kind of data to flash, this includes XML or even
    serialized objects.
    I haven't test how big the data you can send to or from
    javascript can be, but what i've done sofar works pretty good with
    any value.
    If you are not using the externalInterface but the old
    fscommand() then you should read the external interface
    documentation:
    http://livedocs.adobe.com/flex/2/langref/flash/external/package-detail.html

  • Flash Form Not Working In FF3

    I'm having trouble with cfform and flash forms. The forms
    work fine in IE, FF2, and Google Chrome. However for some reason
    the form isn't rendering under firefox 3. If anyone could help me
    out with why this is the url is here:
    http://city.richbank-studios.com:81/admin
    I can go directly to the cfswf file and renders fine in ff3,
    but something is not right with the embedding code or something
    because it won't render in the page.
    Thanks
    Terry

    I am having the same problem, Flash player 10 seems to have
    broken Firefox 2, 3 and Opera...
    I use the "Wimpy" flash button to stream Podcasts and Random
    songs on my site's front page, and as soon as I did the flash 10
    update, it stopped working for me, and many users whom I've talked
    to. Still works in IE 6 and 7..
    Even more funny, I created a Web Photo Gallery in Photoshop
    CS2, (Flash - Gallery 2) and it doesn't work either.
    Gallery is here:
    http://beastiemixes.com/images2/othersites/cnc/index.htm
    Podcast page is here:
    http://www.beastiemixes.com/podcasts.php
    On the podcast page, under "Stream" There's supposed to be
    little (|>) flash play buttons.

  • CF8 Flash forms nor server monitor not working on authenticated server

    Have bee troubleshooting an issue with the server monitor and
    flash forms not working on a CF8 server that is completely
    authenticated. You can see the full thread of the issue here
    http://groups.google.com/group/houcfug/browse_thread/thread/71160184e762587f?hl=en
    In the pre-cf8 days, we had implemented the following "fix"
    for NT Authentication with CF Templates
    http://www.adobe.com/go/tn_18516
    However, when I uncheck the "Check that file exists" flag in
    IIS6, both the server monitor and the CFFORM type = flash are now
    both working. Am I making a tradeoff between NT security and
    Flash/Flex?
    My question is this, is the "fix" referenced in the KB
    article abonve still needed for CF8?
    If so, do I have to decide between security and Flash/Flex or
    is there a way to have both NT security and flash/flex on the
    server?
    If not, I would suggest that somebody from Adobe make an edit
    to the KB article pointing out that the "Fix" is not needed for CF8
    and if implemented will break the server monitor and flash forms
    and Flex on that CF server.
    Thanks,
    M

    I mean when I open the administrator and click on Launch
    Server Monitor it does nothing. Does not open and as far as I can
    tell no error is generated or logged. If I open it outside of the
    the administrator it opens but when I click on Statistics or Alerts
    I get a logon Server Monitor logon box that tells me that the
    ColdFusion Server is not started.

  • Flash Forms and onchange

    OK, I need help. I've just started using flash forms, and I
    love them. But, I have a problem. In this example I have cfinput
    boxes a, b, and c. After the user adds data to a and b, I use
    javascript to subtract b from a and insert the value into c, using
    onchange="subtractme();" in the b tag. Problem is, the form never
    loads. What am I doing wrong?
    <script language="javascript">
    function subtractMe1() {
    document.cool.c.value=Math.round(document.cool.a.value -
    document.cool.b.value);
    </script>
    <cfform name="cool" format="flash">
    <cfinput type="text" name="a" width="60" >
    <cfinput type="text" name="b" width="60"
    onChange="subtractMe1();">
    <cfinput type="text" name="c" width="60">
    </cfform>

    On Linux or Unix, you may need to create a symlink to cfide
    directory as CFIDE (case sensitive) in your web directory. Have
    your host issue the following command.
    ln -s /path/to/web/dir/cfide CFIDE
    Additionally, Firefox 1.5 loads Rich Flash forms fine on my
    OSX running Panther 10.3.9.
    Rock.
    -S

Maybe you are looking for

  • Open tabs that go unused for a few minutes no longer work and cause me to lose the page it was on.

    I like to keep many tabs open at all times, and recently Firefox has started messing up my tabs whereas I've never had a problem with this before. I believe it started after the latest Firefox update. As mentioned above, if a tab stays open but unuse

  • Query Folders in Browser Java Error

    my Query Folders do not work in browser interface, giving the following error message Content Server Request Failed Unable to execute service method 'getMaxCollectionDisplayRows'. (System Error: Runtime error: java.lang.NullPointerException at collec

  • Impact of migrating to a new database on the existing code

    There is a java application that connects to postgreSQL as the database server. postgreSQL is installed under LINUX. I am planning to migrate the existing postgreSQL database to a SQL Server 2000 database under windows. In case of such an action will

  • Fetch Sales order & item from Prod ord to TR Header text when staging mat

    Hello We have a need to see Sales order and item number in TR header text when selecting TR to be processed in transaction LB10. TR´s are created via transaction LP10. Is there any solution to get Sales order number from Production order to be automa

  • SG 300-28p vlan configuration

    Hello, I have been trying to setup vlans on a SG300-28p but they are not working. This is my setup: I want Switch1 to have ports 1-10 to access the DMZ, and 11-24 the LAN. Then i wan to add switch2-4 to extend the access to LAN. Is this possible? i t