Yahoo maps not working in air? pls help!!! someone!!!

Hi  everyone,
I have created a partial air app and now i need a yahoo map.
The code which I have works in dreamweaver when i test it as a normal web html file but does not work then when I use it in aptana studios for air apps.
The code is :
<head> 
<script type="text/javascript" 
src="http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=myappid"></script> 
<style type="text/css"> 
#map{ 
height: 100%; 
width: 100%; 
</style> 
</head> 
<body> 
<div id="map"></div> 
<script type="text/javascript"> 
     // Create a map object 
alert('1');
     var map = new YMap(document.getElementById('map')); 
alert('2');
     // Add map type control 
     map.addTypeControl(); 
     // Set map type to either of: YAHOO_MAP_SAT, YAHOO_MAP_HYB, YAHOO_MAP_REG 
     map.setMapType(YAHOO_MAP_REG); 
     // Display the map centered on a geocoded location 
     map.drawZoomAndCenter("San Francisco", 3); 
</script> 
</body> 
</html>
The error I am receiving is "ReferenceError: Can't find variable: YMap"
can anyone tell me why?
Thank you all so much in advance?
IrishAirMax

Content in the AIR application security sandbox (content installed with the application) cannot directly load JavaScript files from remote domains. This is a security feature to prevent application from executing scripts from potentially dangerous sources.
However, in an iframe or frame, you can load a file in the application directory into a non-application sandbox, such as a remote sandbox "http://api.maps.yahoo.com". For example, the following example maps content installed in the sandbox subdirectory of the application to run in the remote sandbox for the http://api.maps.yahoo.com domain:
<iframe
    src="http://www.example.com/local/ui.html" 
    sandboxRoot="http://api.maps.yahoo.com/local/" 
    documentRoot="app:/sandbox/">
</iframe>
That local file (in the iframe) can now load a script file from http://api.maps.yahoo.com. And the parent page (of the iframe) can communicate with the child iframe using the AIR script bridge mechanism.
This is all described here:
http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7f08. html
And here's a "quick start" application that shows you how to use the sandbox mapping and script bridging features:
http://www.adobe.com/devnet/air/ajax/quickstart/sandbox_bridge.html

Similar Messages

  • Just now i replace the 5s mother board but could not work touch id pls help me.....

    just now i replace the 5s mother board but could not work touch id pls help me.....

    if you have replaced the logic board on your phone, by yourself then that is considered modification  and can cause other parts to fail due to ESD issues or just damage from handling parts

  • My ipod touch is not working at all pls HELP, my ipod touch is not working at all pls HELP

    My iPod touch is not working at all,i did everything i could and still it doesnt work,i live in the philippines my idea of solving this problem is to send it back at Apple California we do have service centre here but i dont trust them,i dont know what to do,I REALLY NEED YOUR HELP

    Quite possibly.  It wouldn't hurt to try another one if at all possible. If you have to, borrow one from a friend.  It could also be due to debris in the docking port of your iPod.  Take a look on the inside of the port and make sure there is no lint or anything like that.  Also look for broken pins as they would definitely cause connection issues as well.
    B-rock

  • AS3 Timer to change frames not working correctly. PLS help

    HI I am having a big of trouble with this code to change frames on my timeline. I thought my code below would work fine but its not. For some reason it will go to frames 1-4 (4 is the last frame) then it will go back to 1 again just fine as its supposed to... but then will jump to 3 then back to 1... all random instead of staying in sync.  I have attached both my as2 version and my as3 version. My as 2 is working perfectly. I can define the amount of time a frame will pause for on each frame. ... the as3 though I am having no luck. Any help or advice would be appretiated! Thank you
    here is my as 3 code;
    stop();
    var frameTimer:Timer = new Timer(1000);
    frameTimer.addEventListener(TimerEvent.TIMER, frameChange);
    function frameChange(e:TimerEvent):void
        if(currentFrame == totalFrames)
            gotoAndStop(1);
        else
            nextFrame();
    frameTimer.start();
    here is my as 2 code;
    stop();
    function GotoFrame ()
        StopTimer ()
        var frame:Number = _root._currentframe;
        var total:Number = _root._totalframes;
        var Next:Number = (frame % total) + 1;
        _root.gotoAndStop (Next);
    function StartTimer (Time)
        _root.myTimer = setTimeout (GotoFrame, Time);
        _root.stop ();
    function StopTimer ()
        clearTimeout (_root.myTimer);
        delete _root.myTimer;
    StartTimer (1000);

    Oh I didn't think about that! ... I suppose it is ok to overlook things like this while im still learning
    Thanks for that answer. Perfect! .. that was driving me crazy.
    any chance you could help me solve the next task of defining the amount of time each frame will pause on each frame. In my action scrip 2 code I could put timerFunctioName(5000); and it would pause only that frame for that amount of time and I was able to put different time pauses on each frame in this way.

  • HP Pavilion DV 6000 Mouse/Touchpad Not Working at All PLS HELP!

    I have an HP Pavilion DV 6000. When it is powered on and I log in a screen pops up showing the mousepad with a red line going through it. The mouse does not move at all. Therefore I can not recover or do anything with the computer. Has anyone heard of this????
    Also, the mousepad is not locked & I have tried rebooting the computer numerous times.

    Kbrandt29 wrote:
    I did try a USB mouse a while back. I know it didn't work but I'm not sure what happened. 
    How do you reinstall drivers? Sorry I'm not completely tech-savvy. 
    Thanks so much for your help. 
    First was it a corded usb mouse or a cordless?
    If it was a corded it should've auto installed drivers from Windows itself to get it up and runnig.
    If it was a cordless it should have again auto installed drivers for the dongle when inserted, But the mouse may have needed paired to the dongle, Which is done by usually clicking first on the discover/matching button on the bottom of the mouse itself, then pressing on the button on the dongle itself and that should match them together.
    If it was a newer cordless mouse though most are already matched at the factory so there's no need for pairing much anymore.
    As for installing the drivers it's fairly simple.
    If you have a drivers and application DVD either that you bought from HP, or made yourself if you did a default factory image onto a DVD when you first got your computer, put that disk in your drive and navigate it till you find the driver, It should be marked Input Device Driver.
    Or you can go to HP's Support Site and download the latest driver for your TouchPad and reinstall it from there.
    You'll most likely have to reboot after doing this?
    Let me know if this helps.
    If not I've a couple other ideas, I just don't want to overwhelm you at this point.

  • J2re-1_4_2_06-windows-i586-p Slient Intall not work... pls help...

    I've created a batch file to slient install j2re 1.4.2 for our PC, just like below:
    @echo off
    C:\java\j2re-1_4_2_06-windows-i586-p.exe /s /v "/qn /L C:\Java\setup.log REBOOT=Suppress JAVAUPDATE=0 IEXPLORER=1"
    exit
    after I run the batch file, task manager showed the process "j2re-1_4_2_06-windows-i586-p" for just a few second... after that, nothing has been done...
    I would like to ask what is the problem with the batch file ? our computer all running with WinXP SP2,
    Thank you very much

    Ok. I think i've found a solution that at least it's working for me. Don't ask me the exact details, because i'm no java expert. I believe it's related to the java version firefox recognise. In my case, since i'm using 2.0.0.6, all i did was add this parameter for my config section:
    jpi_mimetype=application/x-java-applet (pick the lastest one installed i guess).
    Now, everything it's working OK.
    Best regards, Luis ...!

  • My ipod touch just shows the charge symbol on the screen and i checked whether there is a problem in the charger but it works perfectly on my iphone 4 and when my ipod is connected to the computer itunes is not recognising my device pls help me

    my ipod touch just shows the charge symbol on the screen and i checked whether there is a problem in the charger but it works perfectly on my iphone 4 and when my ipod is connected to the computer itunes is not recognising my device pls help me

    tmplHi pranoop,
    If you are having an issue with your iPod touch not being recognized by iTunes when connected to your Windows computer, I would suggest that you troubleshoot using the steps in this article - 
    iPhone, iPad, or iPod not recognized in iTunes for Windows - Apple Support
    Thanks for using Apple Support Communities.
    Sincerely,
    Brett L 

  • In my case, my earphones are playing music but it is muffled/not clear... and when i plugged my earphone on other devices it is working smoothly.. pls help. what am i going to do with my headphone jack?

    in my case, my earphones are playing music but it is muffled/not clear... but when i plug my earphone on other devices it is working smoothly.. pls help. seems there is a problem with my iphone headphone jack. what am i going to do? i also tried cleaning it but it does not resolve the problem.

    I should mention, it was on low power as I was using it.

  • After i use 4.3.3 for iphone 4. the notification for facebook and yahoo do not work. what is wrong? anyone can help?

    after i use 4.3.3 for iphone 4. the notification for facebook and yahoo do not work. what is wrong? anyone can help?

    I am also on my forth hard drive on the same model.
    When I unpacked the computer, the hard drive did not include OS X either. Actually, it was completely blank. Did not even have a partition table! I have also had random problems with the machine not charging.
    I have replaced the drive myself with an SSD after figuring the Apple Certified technicians were incompetent. Now even the SSD is starting to fail
    I have bought an HP laptop and setup Ubuntu on it. Hope it turns out better than my previous four various Mac models. All have had various repeating hardware issues that Apple Certified technicians have been unable or unwilling to correct.

  • Camera, Browser & Maps Not Working

    Hi,
    It been since yesterday my Z10 camera, broser & maps not working.
    Whenever I click the camera icon, it is not even opening.
    Browser icon had changed, it turned to a triangle square & circle.
    Can anyone help me out.
    Thanks,
    Chris

    The update may not have loaded properly, you can reload this way:   http://btsc.webapps.blackberry.com/btsc/viewdocume​nt.do?externalId=KB34045&sliceId=2&docType=kc&noCo​...
    Or do a Security Wipe (Reset to Factory Settings) this way: 
    http://btsc.webapps.blackberry.com/btsc/viewdocume​nt.do?externalId=KB33591&sliceId=2&docType=kc&noCo​...
    Please read both carefully !

  • HT4262 WI-Fi not working says air port not configured

    Wi-fi not working says air port not configured, help]

    Life is getting more complicated to do support..
    You need to tell us what version airport.. extreme or express and the model number. A1xxx from the label.
    You need to tell us OS.. if the profile which says 10.6.8 is wrong.. as that is confusing.
    The new AC version Extreme needs 6.3 version airport utility which is only available for Lion or mountain Lion.
    You might also need to turn on ipv6 local-link to get it to show in the utility.

  • Yahoo email not working

    hi.
    My Yahoo email account has stopped working on my iPad. I have deleted the account and reinstalled it but still no joy. My email works fine on my Mac and iPhone ok.
    Can anyone help?
    Thanks.

    Usually uninstalling and readding the info takes care of it.
    It could just be a glitch with yahoo. Several people have short term issues with their yahoo mail not working.
    are you trying to access it on the same wifi as usual? I had an issue where my yahoo will not work if i try to access it on various wifi hotspots and it has to do with the protocols on the access point.
    I'd give it a few hours and see if it resolves itself.

  • I cannot get my messages/text messages to work om my Hi.  I am sending this thru my iPad.  Respond and let me know you got it.  Fun fun fun.  .  I did go and try to another Apple ID different from my iPhone but it still will not work.  Can anyone help me?

    I cannot get my messages/text messages to work om my Hi.  I am sending this thru my iPad.  Respond and let me know you got it.  Fun fun fun.  .  I did go and try to another Apple ID different from my iPhone but it still will not work.  Can anyone help me?

    chicx wrote:
    This is the third time of writing this on your Apple Support Communities!
    Not with your current user id.
    Far too much uneccesary information in your post, which only confuses things, a vast amount!
    Let's start with iTunes.
    Have you updated iTunes to 11.1.5, because the previous version did appear to have an issue about seeing iPods?
    With iTunes 11.1.5 installed, look in Edit/Preferences/Devices, (or use the ALT key, followed by the E key and then the F key) and make sure that the box named Prevent iPods, iPhones and iPads from syncing automatically does not have a tick in the box.
    Once you have doen those two things, check to see if the iPod is seen by iTunes.
    chicx wrote:
    By the way, what does IOS mean? (I thought IO stood for operating system, but am flummoxed by the S on the end.
    Really?
    OS stands for Operating System. (In computer speak, IO means Input/Output.)
    iOS originally stood for iPhone Operating System, but it now refers to the iPod Touch and iPhone. The iPod Classic, which you have listed in your profile as your iPod, does not use iOS.
    I assume that you have been listening to the Podcast in your iTunes on the computer as you cannot transfer it to your iPod. It's what I'd do.

  • On my macbook pro I have a message on my homepage telling me that certain items want to use my keychain. I've pressed cancel the message will not go. The mac is now running very slow and iphoto and safari are not working. Can anyone help?

    On my macbook pro I have a message on my homepage telling me that certain items want to use my keychain. I've pressed cancel the message will not go. The mac is now running very slow and iphoto and safari are not working. Can anyone help?

    What version of Mac OS X?
    What home page?
    What browser?

  • Bluetooth Driver In Windows 8.1 is Not Working after upgrading please help (pavilion g6 2008Tx)

    Bluetooth Driver In Windows 8.1 is Not Working after upgrading please help (pavilion g6 2008Tx)
    what cAN i do to make it work?please help

    Hi:
    If your model uses a Ralink wireless card, see if installing this bluetooth driver works.
    http://h20565.www2.hp.com/hpsc/swd/public/detail?swItemId=ob_135494_1

Maybe you are looking for

  • Video Message - brightness issue which needs resol...

    Hello I am currently running Skype 6.5.0.158 and using a Microsoft LifeCam Studio webcam. When using my webcam for normal calls, or even checking the Tools -> Options -> Video Settings, then I can see my picture perfectly fine - colours are vibrant e

  • Hi how can i change the lenguage of my photoshop interface in english instead of spanish

    Hi how can i change the lenguage of my photoshop interface in english instead of spanish

  • Volume changing on it's own

    I have recently started having a problem with my 5th gen 30gb. the volume will start adjusting itself up and down on it own. it doesn't happen every time i use it, but enough that it a problem. i've tried the 5R's and it still happens. can anyone hel

  • Behavior of UCM Cluster

    Hi, I am installing a new content server cluster and reading the clustering_concepts_10en and clustering_config_unix_10en documentation. I found some lines that make me worry. Here's the quote: A Content Server cluster is different than other industr

  • New to Premiere Pro - Demo at home, Full version at work. Overlap?

    Hi, This is my first use of this forum so I will start by saying hello! I will most likely be here a few times picking the collective genius of everone - I've started in my new job as videographer for a major car manufacturer and have gone from using