Problems interact with Flash and ASP

Hello people, I am beginning to learn how flash to interact
with asp, but im having problems in the execution of the file.
access the link below to see what happens:
http://www.trusttarget.com.br/flash/flash_asp.swf
My AS code:
var endereco:URLRequest=new URLRequest("
http://www.trusttarget.com.br/flash/produtos.asp");
endereco.method=URLRequestMethod.GET;
var carregar:URLLoader = new URLLoader();
botao.addEventListener(MouseEvent.CLICK,chama);
function chama(evento:MouseEvent) :void {
var variavel:URLVariables = new URLVariables("nome="+
busca.text);
endereco.data= variavel;
carregar.load(endereco);
carregar.addEventListener(Event.COMPLETE,carregou);
var texto:String= "";
function carregou(evento:Event) :void {
var variaveis:URLVariables= new URLVariables(carregar.data);
var quantos:int= Number(variaveis.quantidade);
texto= "";
if (quantos == 0) {
texto= "Nenhum Produto encontrado";
} else {
for (var i:int=1; i<= quantos; i++) {
texto+= variaveis["produto"+i] + "\n";
resultado.text= texto;
When I execute the file ASP that makes the search in DB, he
perfectly works, exhibiting the existent information in DB.
But when I try for the Flash, not of the right.
Please, help me
Thanks everbody

my ASP code
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
banco = Server.MapPath("livro.mdb")
Set conexao = Server.CreateObject( "adodb.Connection" )
conexao.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="
& banco & ";"
Dim registros
Set registros = Server.CreateObject("ADODB.Recordset")
registros.ActiveConnection = conexao
registros.Source = "SELECT * FROM produtos WHERE produto LIKE
'" & Request.QueryString("nome") & "%'"
registros.CursorType = 0
registros.CursorLocation = 2
registros.LockType = 1
registros.Open()
x=0
Do while not registros.eof
x=x+1
response.write "produto" & x & "=" &
(registros.Fields.Item("produto").Value)
response.write " - Preço= " &
(FormatCurrency(registros.Fields.Item("preco").Value)) & " "
registros.MoveNext()
Loop
response.write "quantidade=" & x
registros.Close()
Set registros = Nothing
%>
thanks

Similar Messages

  • I am having problems interacting with Microsoft Office programs since the last update:cannot create a pdf through the 'print' menu in exel and both Word and Exel docs sent in Mac Mail end up being received as .dat files.

    I am having problems interacting with Microsoft Office programs since the last update:cannot create a pdf through the 'print' menu in exel and both Word and Exel docs sent in Mac Mail end up being received as .dat files.
    Both these situations have cropped up on my MacBook Pro since the last update.
    Thanks for your help.
    Cheers
    Bob

    The 'Winmail.dat' problem has been extensively covered in these forums, I would search for that (a Google search works well) and unfortunately I have not seen the pdf print problem before, but assuming the software is current and functions normally (other than the pdf print problem) I have no suggestion other than the obvious (but time consuming) re-installation of Office.
    I wish I had more

  • Captivate with Flash and Audio Problem

    hi there,
    I am having lot of flash files and all the audios inside the
    flashfiles are "Event" Sync and not default "Streaming" which
    brings out more problem like slow in clicking buttons and overall
    project speed. but when i change it to Event it works fine at the
    same time i cannot do any audio synching and other audio relatted
    ewordl....
    Please hlp me/...

    I am having a similar problem where flash audio loops plays again on the slide after the one with the flash swf.  Like it's replaying the sound twice, looping is not turned on... I've had multiple problems with flash and captivate like the new CS4 3d transitions just make it go balistic.

  • Can't interact with any open windows, can't interact with flash content

    I've already tried reinstalling, resetting and deleting my profile, nothing's changed.
    I can't close any Firefox window by pressing "x", or by pressing Alt+F4, I can only close it through the task manager or task bar. Minimising or going into windowed mode is also impossible.
    If a new window opens itself (e.g. A download) I can't interact with it at all - It's visible on top of the main window, but nothing I do affects it.
    I also can't interact with flash content (like pausing a youtube video)
    There is absolutely no feedback when I try. The icon doesn't change.
    I recently reset firefox, there are no add-ons, themes etc. installed, the problem persists.
    I am running Windows 7 64bit, everything else (including other browsers) appears to be working fine and a virus scan (Avast! free version) turned up nothing.
    I'd really appreciate any help!

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • What's With Flash and IE7 ?

    I have noticed a number of posting of Flash and IE7 troubles,
    but they are not close enough or succinctly worded enough to suit
    me to glom onto their post with my problem, and I noticed that the
    ones who have a problem similar to mine are not being answered. So,
    I take it that there is definitely a problem with Flash and IE7,
    but no one knows the answer and Microsoft has not risen to the
    problem of dealing with a problem that affects hundreds of
    thousands of users. I have posted the following on a Microsoft
    forum, but have received no reponses there as of yet. Hopefully the
    Flash gurus here will be able to rise to the occasion more quickly
    than their Microsoft IE counterparts.
    If you look at the home page for
    http://www.townofstarprairie.com/
    using FireFox or IE 6 (with security settings lowered), you'll
    notice a scrolling flash text box at the top, and an exact
    duplicate of that text box at the very bottom of the page.
    If you use IE 7, the one on top does not show but the one on
    the bottom of the page does. These two Flash boxes are identical in
    every way.
    I have toyed with my IE 7 settings to the point where IE was
    screaming at me that the world was going to come to an end due to
    my low security settings, and still the one on top does not show.
    What ever could be the problem with this?
    Thank you for any help you can provide!

    Nickels55, you are correct....mostly.
    One of my acquaintances busted into the weather.com code and
    sent me the source. After much trial and error, I found that by
    removing the STYLE block completely, I no longer had a problem. I
    even tried removing the styles between the STYLE block, but that
    didn't work. I had to remove the STYLE tags, too. I tried linking
    out to a style page to no avail , btw.
    For a while, you can see a bust of this problem at
    http://www.townofstarprairie.elitecyberdesign.com/index.cfm?optionid=5877
    What's really weird is that this problem only affects the
    Flash code ABOVE the Weather.com widget (you would think it would
    affect below, but such is not the case), and only in IE 7.
    Very strange.

  • I have tearing with flash and Youtube videos.

    First, my specs.
    Windows XP
    Quad Core
    Nvidia 9600gt DDR3
    2GB RAM
    Browsers: Firefox 3.6.12 and IE7
    I have the newest Nvidia Drivers and Adobe Flash 10.1
    Well the problem is that I have tearing with flash and videos in Windowed Mode, if I turn the full screen option there is no sign of tearing BUT only if I have hardware acceleration turn on.
    So the problem is, why I have tearing in windowed mode?

    Same here. I am not getting 'what tearing' is all about. Can u please explain?

  • Unable to interact with Flash content when running Firefox with restricted user

    When running Firefox with limited Windows user on Windows XP the Flash elements are displayed, the content that is set to auto-play does so even, but the flash area doesn't receive any mouse input: e.g. when I right click in the area instead of the flash context menu I get the browser context menu as if the flash plug-in wasn't even there. The exact same page on the exact same computer but with Administrator user works as expected: can press buttons, interact with flash controls and the context menu upon right-click is of course the flash one. This behavior occurs even if I disable all add-ons.

    Try uninstalling your sound card driver in Device Manager and reboot your PC.

  • Tool or framework to interact with OTM and Logistic Service Provider(LSP)

    Hi,
    We are using Oracle Transportation Management (OTM) service for the transportation management. But to interact with the LSP(logistic service provider) We need some tool.
    Please suggest me some tool or stable framework that can interact with OTM and Logistic Service Provider, just like Apache Camel
    if you have any any idea please guide me on this, it is very urgent .
    Edited by: 902943 on 13-Mar-2013 23:36

    @riatest Thanks for the info.
    I downloaded flex sdk to see if there is anything that will help me. But, In flex sdk, I cannot find anything that would ease my path. I want to stick to developing in C# to talk to Flash applications. What is the best way to proceed? Are there any sdks that I can download and use for C# development to interact with the flex controls? What is the way to go? I seem not to find any good hits in the web as well
    Thanks
    Sailesh

  • OUTLOOK.EXE version 12.0.6668.5000 stopped interacting with Windows and was closed.

    I have an end user whose Outlook 2007 is spontaneously closing. It will enter a 'not responding' state and then shut down (and sometimes relaunch). In going through the event log the following information was obtained. O/S is Win-7, 64-Bit. Any input greatly
    appreciated.
    The program OUTLOOK.EXE version 12.0.6668.5000 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Action Center control panel.
    Process ID: 14ac
    Start Time: 01cf6af126c3ad83
    Termination Time: 79
    Application Path: C:\Program Files (x86)\Microsoft Office\Office12\OUTLOOK.EXE
    Report Id: c7d7556f-d9dd-11e3-a17c-2cd05a89d710
    And further into the Event Log (Application)
    - System
    - Provider
    [ Name] Application Hang
    - EventID 1002
    [ Qualifiers] 0
    Level 2
    Task 101
    Keywords 0x80000000000000
    - TimeCreated
    [ SystemTime] 2014-05-12T14:03:22.000000000Z
    EventRecordID 26088
    Channel Application
    Computer uswal-3PLSJX1.amer.thermo.com
    Security
    - EventData
    OUTLOOK.EXE
    12.0.6668.5000
    14ac
    01cf6af126c3ad83
    79
    C:\Program Files (x86)\Microsoft Office\Office12\OUTLOOK.EXE
    c7d7556f-d9dd-11e3-a17c-2cd05a89d710
    55006E006B006E006F0077006E0000000000
    Binary data:
    In Words
    0000: 006E0055 006E006B 0077006F 0000006E
    0008: 0000
    In Bytes
    0000: 55 00 6E 00 6B 00 6E 00 U.n.k.n.
    0008: 6F 00 77 00 6E 00 00 00 o.w.n...
    0010: 00 00 ..

    Hi,
    The event log in your posting is a general error event which occurs when application stops responding. Please make sure the latest patches and service packs are installed for your Outlook 2007.
    Please also restart Outlook in safe mode(Start > Run, type Outlook /safe and Enter) to check whether Outlook 2007 is still not responding or not.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • In Fi Hw we wll interact with Abapers and hw we wll write logic for reports

    hi every body...
    my name is ravi prasad.  i need one help.in FI....in real time as a sap FI consultant how we will interact with Abapers.and
    how we will write Logic for the Reports. please send me step by step.
    My mail id is    [email protected]
    Thank you very much.
    Awaiting for your response.

    hi,
    Please give me one example , and how we enter into tables, and how we know which table we have to use, and we will write logic.
    Ex;---if our client needs total sales commission payed by him.... if it is below 100,
    and if it above hundred....like that
    for that purpose in which place we will write logic.; i need the place where we write the logic.
    please send me tcodes and step by steps.
    Thank you very much,
    awaiting for your reply.
    my mail id is      [email protected]

  • The program shany ip surrvilance Playback.exe version 4.0.7.3 stopped interacting with Windows and was closed

    in windows server 2008 r2 running shany ip surveillance
    when i want to playback from record file windows encounter error:The program shany ip surrvilance Playback.exe version 4.0.7.3 stopped interacting with
    Windows and was closed

    Hi Koosha,
    You should ask this question on
    Windows Forums.
    Thanks!
    If this answers your question please mark as answer. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Using databases with Flash and PHP

    Hi, everyone!
    I`m a PHP newbie. I just learned PHP so that I can use
    databases with Flash.
    I`ve got a .php script that contains html that loads up my
    .swf file. The .swf file is the core of my site. What I want to
    know is if I can call some PHP functions (that I have wrote in the
    .php script) from within the .swf file... This functions would
    perform the reading and updating of my database.
    The only way I know of to modify a database from Flash is
    using the POST and GET methods. But that opens up a new browser
    window in which the PHP script is called. And that only handles
    writing in the database. So, what if I just want to read from the
    database some values and insert them into a TextField in Flash? How
    do I do that?
    Thanks! Ardy

    1. Goggle "Flash and mySQL" and you'll get a listing of alot
    tutorials
    2. I'm also just learning. Here's a great URL to start:
    Building with Flash and MySQL
    That's right, a Flash-based blog — it sounds a little
    loony, but this blog pulls content from a MySQL database and feeds
    it into the dynamic Flash frontend ...
    www.webmonkey.com/programming/php/tutorials/tutorial2.html -
    20k - Cached -

  • Is there any way to interact with ipad3 and a smartboard?

    Is there any way to interact with ipad3 and a smartboard?

    A google search revealed that currently there is no software or App which permits iPad to work with Smartboard.

  • Help!(confused face) I'm new with flash and don't know why the timers don't work like i would expect

    I'm new with flash and don't know why the timers don't work like i would expect.  In VB.NET timers are how you move stuff, but it doesn't look like they are ideal for moving stuff in flash at all (really slow).  I'm making a game in which you throw a ball around the screen. i am using a timer to get the ball to move. this doesn't work well for 2 reasons; 1: the ball jumps alot, and 2: the timer should eventually run out of time.  If anyone can help, i'd be thrilled cus this is my first post here, so yeah

    Timing for movement would be more often dealt with using something that operates at the frame rate of the file.  The ENTER_FRAME event is usually selected for this purpose.
    stage.addEventListener(Event.ENTER_FRAME, moveBall);
    function moveBall(evt:Event):void {
         // your positioning code
    You could use a Timer to control when to stop the listener from being active.

  • Import, and interact with, Flash 8 movies in Flex3.

    Hey gang,
    I have a Flash CS3 App built with ActionScript 2.0 that imports Flash 8 SWFs. Those Flash 8 SWFs are each comprised of hundreds of movieclips.
    I'm rebuilding the Flash CS3 App in Flex 3, and even though I can import the Flash 8 SWFs but can't interact with them (change their color, change their sizes, duplicate them, etc).
    Before you tell me to convert all the Flash 8 SWFs to CS3/ActionScript 3.0 know that there are 700+ of them.
    Tips? Tricks? Ideas?
    A sample SWF (and source FLA) I'm trying to import into Flex 3 can be found here:
    http://www.bensmash.net/sample/SM2.swf
    http://www.bensmash.net/sample/SM2.fla
    I appreciate your help!
    -Benjamin

    ejl_70 sorry but is true you need flash cs3 to save in flash 8 in flash cs4 your only save as to flash cs3

Maybe you are looking for

  • .removeEventListener(Event.ENTER_FRAME  is not working please help

    hey guys... so i have a new problem... basically im trying to load a swf, and for this swf to load properly i need to pass it an id, and when the swf, after using the id gets all the necessary data, sets a variable called loadCompleted to true The pr

  • New 27 inch iMac used as monitor for PS3

    Greetings! I am trying to use my 27 inch iMac as a display for the Play Station 3. I have a Mini DisplayPort to HDMI cord connected to both and the iMac does't do anything. I looked at the display in system preferances and there is no AirPlay Mirrori

  • BI Authorization

    Hi All, Can any body please give me the pointers/links/docs related to BI authorization. Thanks Puneet Edited by: Puneet Chawla on Dec 19, 2008 2:15 PM

  • Iphoto does not open after ilife '11 upgrade

    had just purchased ilife '11 and after running install, iphoto not longer works. it asks to be updated but the program then after checking said it's up to date. downloaded the iphoto 9.3.1 update but said it couldn't be installed because my version i

  • Protecting rtmp stream

    recently, i found that 'streamtransport' makes use of IE browser to capture rtmp/rtmpe/rtmps transport data stream.   how is Adobe's suggestion to bypass this s/w?