Problem with sendToURL(). How can I solve it?
Hi All,
I am new to flash and as3.
I have an issue with sendToURL() and navigateToURL() methods.
Here, i am placing the data present in my database into an Xml file. Again, i am parsing this xml file for accessing/retreival of data into flash using AS3's XML and XMLList classes and its methods etc.,
Collecting data from database to Xml file works fine. But, when we use navigateToURL(), a new browser window opens and required data is obtained to flash successfully.
In order to omit the new browser window, here, we are using sendToURL(). But, here, the Xml file is unable to create(not created). Hence, no data is passed from database to flash.
I also tried using URLLoader(but the same issue arises) whose code looks like this:
function createXml():void{
var url:String = "http://localhost:8888/xmlServlet";
var request:URLRequest = new URLRequest(url);
/* var urlLoader:URLLoader = new URLLoader();
urlLoader.dataFormat = URLLoaderDataFormat.TEXT;
urlLoader.addEventListener(Event.COMPLETE, completeHandler1);
trace("XML Loaded URL is"+url);
var variables:URLVariables = new URLVariables();
variables.viewid =String(comboBox_mc.selectedItem.data);
//request.method=URLRequestMethod.POST;
trace("variables.viewidvariables.viewid:"+variables.viewid);
request.data = variables;
//sendToURL(request);
navigateToURL(request);
//urlLoader.load(request);
/*function completeHandler1(event:Event):void {
var loader:URLLoader = URLLoader(event.target);
var succData:String=loader.data;
trace("in complete handler"+succData);
Please help me in this context.
Waiting for ur reply....
Thanks in advance.
Swathi.K
Hi Greg Dove,
My requirement is that,there is button in my application when i click on it,it creates a xml file with data from the database, after that the data is loaded in the the .fla file.The code snipplet is as follows:
submitBtn_mc.addEventListener(MouseEvent.CLICK,onCheck);
function onCheck(evnt:MouseEvent):void {
var url:String = "http://localhost:8888/xmlServlet";
var request:URLRequest = new URLRequest(url);
var variables:URLVariables = new URLVariables();
variables.viewid =String(comboBox_mc.selectedItem.data);
request.data = variables;
sendToURL(request); //this creates an xml file
//For loading xml file and placing in .fla
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(new URLRequest("humanap.xml"));
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
trace("values from xml are");
function LoadXML(event:Event):void {
var xmlData:XML = new XML();
var xmlList:XMLList;
xmlData = XML(event.target.data);
xmlList = xmlData.children();
Here sendToURL(request); is not working.It is going to the serverside script but not creating the xml file.When i use navigateToURL(request); its working fine.PLEASE HELP ME...................
Thanks in advance
Swathi
Similar Messages
-
Hey i have my iphone is not synching with itune, how can i solve this problem..
Hey my iphone is not synching with itune, how can i solve this problem?
It can sync with a 32-bit, so long as you have the correct version of iTunes installed. I'm assuming that you are referring to a Windows based computer, so check out this support document regarding the device not being recognized by Windows. http://support.apple.com/kb/TS1538
-
firefox is working my system too hard and the system is revving very high.
== This happened ==
Every time Firefox opened
== today ==
== User Agent ==
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7Does this start right when you start firefox or after you've loaded some pages? Are there specific pages that cause this problem?
-
In my iPad 2 with IO6 today I can not send emails from my gmail account, they go to the outbox directly...why? How can i solve this problem? ..I restarted the IPad but the problem was not solved. Please help.
Greetings,
Questions:
1. What version of the Mac OS are you running (Apple > About this Mac)?
2. What version of the iOS are you running (Settings > About)?
3. Do you use MobileMe/ iCloud or another server based sync solution like Google or Yahoo?
4. Do other changes to synced information like Address Book content sync successfully back and forth?
Based on your description it sounds like you have a 1 way sync issue. Events sync fine between the iOS devices and fine from the computer to the iOS devices but not from the iOS devices to the computer.
Try:
Backup your computer and iOS devices before doing anything else:
http://support.apple.com/kb/HT1427
http://support.apple.com/kb/ht1766
Ensure all the devices in use are fully up to date: Apple > Software Update / Settings > General > Software Update
Make separate backups of critical data:
Backup your computer Addressbook: http://docs.info.apple.com/article.html?path=AddressBook/4.0/en/ad961.html
Backup your computer iCal: http://support.apple.com/kb/HT2966
Reset syncing on your Mac: http://support.apple.com/kb/TS1627
Reply back if that does not resolve your issue.
Hope that helps. -
Hi, I bought Apple tv traying to rent a movie but there problem with itunes, and there is on apple tv don't have my country. could you help me please how can I solve this problem?
Whinston,
I live in Azerbaijan. Recently I bought apple tv in New York. When I come back to my country tried to rent movies from my country but couldn't find my country name on apple tv menu, so there is a problem I don't know how to fix it. is there have another way to take a rent movies? -
Hi, I have problem with importing MOV files from SJCAM 4000. MOV files are in supported formats for Adobe Premiere Elements 11. But if I'm importing MOV file, only audio part is imported, video part is not imported. How can I solve this problem?
haben
From looking at the specifications of your camera (SJCam 4000), we know already what video compression your camera is using. It is H.264.
A H.264.mov file should be supported by Premiere Elements 11. On what computer operating system is your Premiere Elements 11 running?
Do you have the latest version of QuickTime installed on your computer? And, are you running QuickTime and Premiere Elements 11 from a
User Account with administrative privileges? Please go to Premiere Elements 11 Publish+Share/Computer/QuickTime to confirm that you find
presets there for the QuickTime choice there.
What are the properties of these H.264.mov files - is it 1080p30 (1920 x 1080p30) or something else? Do you know if this camera is recording with a variable or
a constant frame rate?
Please review and consider and then we will decide what next.
Thank you.
ATR -
Hi! I just bought Lion and I am having a problem with the installation. It keeps telling me that the computer's hard drive has a S.M.A.R.T. problem. How can I solve it?
Thanks!
AngelaYou may have a hard drive problem. When I installed Lion, the installer told me that it couldn't complete because the hard drive was failing (or broken, the exact words escape me). Since the HD had been functioning just fine, I took it to the Genius Bar, and found out that yes, the hard drive was slowly dying (bad sectors). I couldn't reboot into Snow Leopard, the installer wouldn't let me and then the drive just wouldn't work at all.
I had to replace my drive and restore from Time Machine. Thankfully, I had Time Machine, and had just done a backup 5 minutes before the crash.
Best of luck. -
With everything i want to delete the iMac wants my password, before it was not like that, i'm getting crazy of it.. Even with pics he's asking for my password..
How can i solve the problem and delete stuff without filling in my password every time..
Already thnx for your support and help..Normally, that's caused because of a permissions problem. Have a look at this site > http://www.thexlab.com/faqs/trash.html#Anchor-Files-46919
-
HT4623 How can i solve installation problem with iOS 6.
How can i solve installation problem with iOS 6. I've tried to install it on my iPhone 4 but nothing turned out. Thanks in advance!!!!
can you connect your device to Tiunes and check to see if there are any files in
OSX: ~/Library/Logs/Crashreporter/Mobiledevice/<Devicename>/
Windows: %appdata%\Apple Computer\Logs\Crashreporter\MobileDevice\<Devicename>
specifically named OTA......
Also for the failed itunes restore please attach the contents of the latest log in
OSX: ~/Library/Logs/<iphone or ipod or ipad> updater logs
Windows: C:/User/ Appdata/Roaming/iTunes/<iphone or ipod or ipad> updater logs -
I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?
By doing a Google search.
-
I cannot reactivate my e-reader with my existing Adobe ID and password which are both correct. I alwayss get the message "activation server error, Code: E_AUTH_NOT_READY" What kind of problem is this and what is most important, how can I solve it quickly. I am on holiday and want to read. Thanks for speedy reply.
Yes, actually I talk about Digital editions. Do you know how to solve the problem as described in my first mail for Digital Editions? Thanks for your kind assistance.
-
Hi this is alamzeb , i have purchased OS X mountain lion from apple store and installed it on my macbook with the expect ion of making my macbook faster but it become more slow by installing os x , how can i solve this problem
alamzeb wrote:
Hi this is alamzeb , i have purchased OS X mountain lion from apple store and installed it on my macbook with the expect ion of making my macbook faster but it become more slow by installing os x , how can i solve this problem
Have a read under the threads on the Right hand side of this page under 'More Like This'
Pete -
I have a problem. I take photos with camera of my iPod touch 5 with the effects that comes in the iPod and now when I look to my photos I see that the effects go out and the photos looks like I didn´t put the effects. What is that? How can I solve it?
Try:
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device. -
console blinking amber and white alternatively. displaying the Apple TV console with a question mark on top of it. What is the problem and pls how can it be solved ?
That's hard to say.
General File Recovery
If you stop using the drive it's possible to recover deleted files that have not been overwritten by using recovery software such as MAC Data Recovery, Data Rescue II, File Salvage or TechTool Pro. Each of the preceding come on bootable CDs to enable usage without risk of writing more data to the hard drive. Two free alternatives are Disk Drill and TestDisk. Look for them and demos at MacUpdate or CNET Downloads. Recovery software usually provide trial versions that enable you to determine if the software would help before actually paying for it. Beyond this or if the drive has completely failed, then you would need to send the drive to a recovery service which is very expensive.
The longer the hard drive remains in use and data are written to it, the greater the risk your deleted files will be overwritten.
Also visit The XLab FAQs and read the FAQ on Data Recovery. -
I have upgraded Safari in my Mac, but the new Safari does not work with my system. So I find myself without any working browser. How can I solve this problem and/or install my previous Safari version?
Reinstall Safari 5.1.10 for OS X 10.6.8: http://support.apple.com/kb/dl1569. Might do the trick.
But, frankly, I don't think that simply reinstalling the old Safari will work because of all the peripheral, under the hood changes that happen when you upgrade from one version of Safari to another. Reinstalling 5.1.10 may be insufficient to turn back the clock. (This is the moment where a Time Machine or another form of full backup would save your bacon.)
While you're getting a copy of Safari 5.1.10, get a copy of Firefox (https://www.mozilla.org/en-US/firefox/desktop/), too, so that you have an alternate browser to use as you're sorting matters. -
I have two problems with IOS 6.0.
1. I have to type my security code every time I turn on my ipad with ios6.0. I don' have to to his with ios5.1. How can I solve this problem?
2. I can not send email via Yahoo as usual, Only Safari allow me to it.
Accordingly, I am writting here to ask for to solve those problems.
Thanks in advance.* Websites remembering you and automatically log you in is stored in a cookie.
* You need an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep that cookie, especially for secure websites and if you let cookies expire when Firefox closes
* Make sure that you do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
See also http://kb.mozillazine.org/Cookies
Maybe you are looking for
-
My mac keeps crashing EVERYTIME I restart
Ive just had fibre installed and now my Mac mini keeps crashing within minutes of me restarting, even in safe mode. I can't even try to resolve this without it freezing!!
-
CRM Communication structure not working in a copy client
Hi all, my issue is the following. In client 300 CRM, defined as copy of client 100 communication structure CRMT_ACS_I_COM is not filled by implementation of BADI CRM_COND_COM_BADI . Basically it is supposed that once you fill manually a field conta
-
Publish to Android device doesn't work
Flash CS6 - I'm trying to Publish content to Android device to install and open it there, I receive error everytime I try that says your phone is connected. First question cross my mind, why does it assume I have a Phone ? I connected ASUS Android 4.
-
User moved Quality inspection stock from sloc 290 to 295 via Migo_tr(311)
Issue -User moved Quality inspection stock from storage location 290 to 295 (no Quality) via Migo_TR(311) Now they want the "Q" status to be reflected under storage location 295 ,pls help how it can be done. Background- RMA processing was correctly p
-
DnD file in native explorer with deferred download
Hi community, I am trying to provide functionality to drag and drop a file from our application to native explorer. It is pretty easy to do this if the file is present in the source folder to which the transferrable data points. But the problem is th