Any good Native extensions for iOS yet?

Hi,
I wonder if there are any usable native extensions around yet for iOS features?
I have only found these: http://www.adobe.com/devnet/air/native-extensions-for-air.html which seems to be mostly tech-demos (battery, network info etc). I thought at least in-app-purchases, Game Center support, iAds, alertbox etc should have been released by now?
Since I have no knowledge in objective-c I can't do it myself, but I would gladly pay for ANE-files that are usable in real projects.
/Karl

http://code.google.com/p/flash-for-mobile/
qq讨论群:56892018
version for iphone and ipad https://github.com/lilili87222/admob-for-flash
this is a actionscript native extension for developer to ad advertisement to their air mobile application run on iphone or android.it very easy to use
admob for flash android this lib enable you to add admob ad to your flash air application to add native advertisement to your actionscript3 application you just need to do four step
1.replace D:\Program Files\Adobe\Adobe Flash Builder 4.6\sdks\4.6.1\lib\android\lib\resources\android-res.jar with android-res.jar
2. add this config to -app.xml
<android>
<manifestadditions><![CDATA[
<manifest android:installLocation="auto">  <uses-sdk android:targetSdkVersion="11"/> <uses-sdk android:minSdkVersion="8"/>  <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <application><!-- <activity android:name="com.google.ads.AdActivity?" android:configChanges="keyboard|keyboardHidden|orientation"/> --> <activity android:name="com.google.ads.AdActivity?" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize |smallestScreenSize"/>
</application>
Unknown end tag for </manifest>
]]></manifestadditions>
</android>
3.add this config to -app.xml
<extensions>
<extensionid>so.cuo.ane.Admob</extensionid>
</extensions>
4. add code to your android air application like follow 
test1(); private function test1():void {  var admob:Admob=Admob.getInstance(); if(admob.isSupported){  admob.setUnitId(gid); admob.dispatcher.addEventListener(AdEvent?.onReceiveAd,this.adHandler); admob.dispatcher.addEventListener(AdEvent?.onFailedToReceiveAd,this.adHandler);
// admob.showRelation(AdMobAlignment?.ALIGN_BOTTOM,AdType?.BANNER); 
admob.show(50,100,AdType?.BANNER);
}else{  trace("not support"); }
protected function adHandler(event:AdEvent?):void {  trace("receive ad"); }

Similar Messages

  • Using OpenCV inside an Adobe Native Extension for IOS

    I'm trying to use OpenCV.framework inside an Adobe Native Extension that I'm developing to use on an IOS application made in Flex.
    The problem is that I get errors while packaging the application:
        Undefined symbols for architecture armv7:
          "__ZNKSt3__120__vector_base_commonILb1EE20__throw_length_errorEv", referenced from:
              __ZNSt3__16vectorIiNS_9allocatorIiEEE8__appendEm in opencv2(smooth.o)
              __ZNSt3__16vectorIN2cv6Point_IiEENS_9allocatorIS3_EEE21__push_back_slow_pathIKS3_EEvRT_ in opencv2(hough.o)
              __ZNSt3__16vectorIN2cv3VecIiLi128EEENS_9allocatorIS3_EEE8__appendEm in opencv2(matrix.o)
              __ZNSt3__16vectorIN2cv3VecIiLi64EEENS_9allocatorIS3_EEE8__appendEm in opencv2(matrix.o)
              __ZNSt3__16vectorIN2cv3VecIiLi32EEENS_9allocatorIS3_EEE8__appendEm in opencv2(matrix.o)
              __ZNSt3__16vectorIN2cv3VecIiLi16EEENS_9allocatorIS3_EEE8__appendEm in opencv2(matrix.o)
              __ZNSt3__16vectorIN2cv3VecIiLi12EEENS_9allocatorIS3_EEE8__appendEm in opencv2(matrix.o)
        ld: symbol(s) not found for architecture armv7
        Compilation failed while executing : ld64
    and this is the platformoptions.xml I use to compile the ANE:
        <platform xmlns="http://ns.adobe.com/air/extension/4.0">
            <sdkVersion>8.0</sdkVersion>
            <linkerOptions>
           <option>-framework opencv2</option>
           <option>-framework UIKit</option>
           <option>-framework Foundation</option>
           <option>-framework CoreGraphics</option>
           <option>-framework Accelerate</option>
           <option>-framework AssetsLibrary</option>
           <option>-framework AVFoundation</option>
           <option>-framework CoreImage</option>
           <option>-framework CoreMedia</option>
           <option>-framework CoreVideo</option>
           <option>-framework QuartzCore</option>
        </linkerOptions>
        </platform>
    Any idea?

    Problem solved. I've added this line
    <option>-lc++</option>
    to the platformOptions.xml.
    Now OpenCV works great in my actionscript native extension.

  • Native Extension for iOS CoreBluetooth

    Hi All,
    I have been using Flash Builder for a while now to develop iOS prototype applications. Until now all integrated functions have served me very well, but I recently discovered the ability of iOS to cummunicate with Bluetooth Low Energy devices.
    This sounds really interesting, but unfortunately there is no Native Extension available to access this functionality from Air...
    I have been trying to write such extension myself as there is quite some nice information available how to do this, but my Objective-C knowledge is too limited to understand how the CoreBluetooth stack works.
    Hopefully anyone here is interested in developing such extension! If so, let me know and we can see how we can work together!
    Best Regards,
    Tom

    Hi Tom,
    I look for the same ANE to work with iOS, Android, Windows, and MacOSX.
    If you have some informations about this library, let me know please.
    Even, if some developers want to participate in the creation of a such extension, let me know. I am working on this.
    Fabrice

  • 64bit AIR Native Extension for iOS

    Hello,
    I created a native extension to support ARM64 for iOS. The problem is I get the following error when packaging an ad-hoc build:
    "Error: libgameCenter.a are required to have universal iOS libraries. Please contact the ANE developer(s) to get the same."
    As I understand I need both armv7 and arm64 libraries. So I build for both of them using "xcodebuild" and then merge with "lipo -create" command.
    However I think there is a step I'm missing. Please advice. Thank you.
    AIR SDK: 16.0 beta
    Xcode: 6.1.1

    Well the change you need to do is inside your Xcode project, under Build Settings -> Architectures , make sure that you have selected "Standard Architectures (armv7, arm64)". One last thing to ensure that Valid Architectures should also contain arm64 entry along with other armv7 entries.

  • Looking for an AIR Native Extension for iOS that will allow / disable access to certain apps

    I am looking to find and or create an ANE that will allow access and or disable access to certain apps such as internet, text, games, vine etc.  This url represents the closest app to what I am trying to achieve:  https://itunes.apple.com/us/app/parentkit/id600618138?ls=1&mt=8
    Is this possible with iOS7 new features / AIR / older iOS?
    As always any and all direction and help is greatly appreciated,
    Thanks!

    Is this the wrong forum, or posting area?  Is this possible?
    Access to the followinf would work:
    http://support.apple.com/kb/HT4213
    Is this open for development / access to, api?
    Message was edited by: studiobrain

  • Native extension for Game Center

    Hi guys,
    As I understand it with the latest Air Beta it's possible to implement native extensions for iOS, and in theory that would make it possible to connect to both Game Center and in-app purchases.
    Has anyone here tested this? It would be nice to know if there are any show stoppers before I start "digging"...
    Cheers,
    /Andreas

    I just finished an extension for AIR that adds Game Center (commercial.)  I'm going to be doing Multiplayer next.  I'm pretty sure there's an in app purchase one out there, I'm looking for it now, I'll post if i find it.

  • Adobe Air native extension for admob

    Dear Adobe Team,
    We have recently purchased Adobe Air native extension for admob for android & ios
    but every time we upload our app to an ipad or iphone, the app crashes.
    We have carefully followed your instructions, and we're sure we've not made a mistake writing the action script 3 code.
    We need your help in solving this problem urgently, as we are now running behind schedule in uploading our app.
    Thanks very much,
    Amir Steklov and Dorit Leshnick

    Before I was also searched a lot to find good  add network and also Admob.
    Finally we done successfull integration using..  working fine in all IOS devices. not yet released to Apple app store
    http://code.google.com/p/flash-air-admob-ane-for-ios/source/browse/trunk/admobaneiphone/sr c/admobtest.as?r=2
    You can check our add setups using Air ANE's for our android game ExpressTrain.
    https://play.google.com/store/apps/details?id=air.timuzsolutions.expresstrain&feature=sear ch_result#?t=W251bGwsMSwyLDEsImFpci50aW11enNvbHV0aW9ucy5leHByZXNzdHJhaW4iXQ..
    you no need to buyAdobe Air ANE's everything is free but all u need to do is googling,
    hope this will help.
    Bala
    Message was edited by: vamsibalu

  • Adobe: What frameworks are compatible with Native Extensions on iOS?

    Man it's really hard to diagnose what could possibly be going wrong compiling ANEs for iOS. I dev apps in Xcode that work perfect, zero leaks. I use any part of the majority of the frameworks I've tried (none visual) and they simply don't work outside a very rare few. Vibration, gyroscope, alert modals, etc.
    Is there a list of compatibility between ANEs and classes on platforms that AIR supports? Whether it be Windows, iOS, Android, MacOSX, etc?
    Is there some way to "know" that a framework should be supported? For example, all I remember reading is to steer clear of visual classes. Oddly the UIAlertView modal works on iOS (that's visual to me but *shrug*).
    My current need is to use NSURLConnection and NSURLRequest. Both are in Foundation.h. Neither are visual. They're simply classes that make a connection to a host while sending and receiving responses. Yet any time I attempt to instantiate a NSURLRequest it's insta-crash. I comment it out and the ANE works fine. So far I find almost everything I do with ANEs to fail.
    Clearly the framework classes I'm using aren't supported or I'm doing it miserably wrong.
    A chart indicating support would be REALLY nice for each platform.
    On another note, has anyone utilized NSURL* on iOS successfully in an ANE?

    Thanks for the response. A few questions on your insights.. I don't use the command line adt tool to do anything besides package the ANE. Otherwise I'm not sure why my AIR project would need to know where the iOS SDK base directory is. The static library is already produced.
    Here's the simple code I'm using (just the NSURL* related stuff):
    http://pastebin.com/SFsq578R
    I'm producing the Static Lib using XCode 4.3.x. I only need NSURL* functionality which is found in Foundation.h which is included and required for compile in build phases. If I comment out anything to do with NSURL* and simply return a string (FREObject of a const char*) I get that string back to flash and can print it to prove I have the context/initializer/finalizers set up and the function named properly. So the bridge between AIR and ANE work just fine. It's only when I use a NSURL* function that I crash.
    Since my troubles I read this extensively long PDF on creating native extensions:
    http://help.adobe.com/en_US/air/extensions/air_extensions.pdf
    To be brief, it warned that a FREObject only exists until the return of the function you call. What I'm wondering is if it's even possible to use NSURL* functions because they require a delegate and will be running async. So even if I make a request and a connection using that request, after I return from the FRE function the connection is probably being cleaned up.
    That aside, I did make the connection and request a synthesized global hoping to get around this. Also to be brief I found an excellent post about debugging an IPA using XCode. Otherwise you're pretty much in a black hole debugging. Here's the post:
    http://blogs.adobe.com/rajorshi/2011/11/18/debugging-native-extensions-for-air-ios/
    The recipe works although it didn't right out of the box.
    XCode is telling me it's a EXC_BAD_ACCESS which typically means the object does not exist that I'm doing something to. My call stack looks like this (loosely, and the name of my static lib is libWebUtil):
    0 objc_msgSend
    1 CFStringGetLength
    2 _CFStringIsLegalURLString
    3 -[NSURL(NSURL) initWithString:relativeToURL:]
    4 -[NSURL(NSURL) URLWithString:relativeToURL:]
    5 -[WebUtil performRequest] // this is my method
    6 performRequest
    7 avmplus::ExtensionContextObject::_call(avmplus::String*,avmplus::ArrayObject*)
    .. etc
    From that stack I see it firing off the NSURLRequest and NSURL itself is first taking my string and testing it (CFStringIsLegalURLString) and then it runs CFStringGetLength. I assume it has completed verifying the string and goes to send a message (0 objc_msgSend) and I get a EXC_BAD_ACCESS on that.
    I see 9 threads running. This happens on Thread 1 (com.apple.main-thread). The stack traces all look like ASM code to me. Not very useful but at least I can tell the official error.
    Mind you that code linked above works perfectly if I make a new empty app, import it and run it. I print out the response data and it's fine.
    Right around the incident on the stack there's a avmplus::EventDispatcherObject::NativeDispatchEvent(MMgc::GCAPI::GCRef<avmplus::EventObje ct>, avmplus::WeakRefList<SObject> const*) + 1076;  .. if that helps at all. It's like the event it dispatches (perhaps from NSURL) to signal that the NSURL I'm making on the fly is correct but there's no object to receive it. That might happen if my method finishes and the object is destroyed before NSURL can even fire off the message.
    So I'm very interested in learning about object lifecycle in an ANE.

  • Developing and using Adobe AIR native extensions for Android devices

    I was using this tutorial:
    "Developing and using Adobe AIR native extensions for Android devices"
    http://www.adobe.com/devnet/air/articles/ane-android-devices.html
    When packing the Flex mobile ANESampleTest to deploy on an Android device, the below error happens
    Error occurred while packaging the application:
    aapt tool failed:invalid resource directory name: /private/var/folders/k8/1thhvkf92h947n_g22hg_v9m0000gn/T/52ba05aa-9001-4d46-9438-db81ef83 06f0/res/drawable-xxhdpi
    invalid resource directory name: /private/var/folders/k8/1thhvkf92h947n_g22hg_v9m0000gn/T/52ba05aa-9001-4d46-9438-db81ef83 06f0/res/values-sw600dp
    invalid resource directory name: /private/var/folders/k8/1thhvkf92h947n_g22hg_v9m0000gn/T/52ba05aa-9001-4d46-9438-db81ef83 06f0/res/values-sw720dp-lan
    Does anyone know what the issue might be?

    Did you find a workaround for the Error? I'm getting the same and I can't seem to find any solution.

  • Creating a email extension for ios... it keeps flipping the orientation of the app when closing.

    I know, if I need help I should go post on some apple board... but it's information overflow.... and I am not 100% sure it's related to the extension.
    Here's the problem
    I am creating/using an extension to open the MFMailComposeViewController.
    Now, I figured out how to open it and force it to landscape, but the problem is  when I close the email it, my app flips upside down. (landscape left when it was landscape right before, or vice versa)
    My app is set to force landscape left and right... and the mail controller does open in landscape... but it's either upside down (landscape right, when the app is left, or vice versa) or when it closes, it flips the application the other way.
    Has anyone encountered anything like this and ideas on how to fix it?
    My app publish settings, I set to landscape, auto-orient is set to false and it's full screen,
    However, on start up in code... I am setting stage.autoOrients = true and then using the CustomOrientation.as to control the rotation (to force landscape only)
    in my extension, I am showing the MFMailComposeViewController in the
    [[[[UIApplication sharedApplication] keyWindow] rootViewcontroller] presentModalViewcontroller:mailCompser animated:NO];
    and mailCompser is a subclassed MFMailComposeViewcontroller object and I have set it's override to this:
    @implementation MailCompose
    -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientati on {
        return (toInterfaceOrientation == UIInterfaceOrientationLandscapeLeft || toInterfaceOrientation == UIInterfaceOrientationLandscapeRight);
    When I launch my app, it starts
    stage.orientation = rotatedRight
    I then launch my extension and the email page for ios appears, in the correct orientation.... if I rotate the device, both the email and the app rotate to rotatedRight or rotatedLeft correctly.
    I then click Cancel, delete draft
    The email window disappears, but now my screen is landscape left.... if I wiggle the device, the sensor picks it up and then rotates the app back right, but this is a major problem.
    I am thinking it has something to do with the rootViewController orienatation, but I don't know enough about objC and xcode to know what to do.
    I have tried googling and searching will little to no luck... but then, the answer could be staring at me and I would have missed it as I am an obj c noob.
    Anyone know how I can fix this?

    Hi,
    I had the same problem and found the following workaround: apart from overriding MFMailComposeViewController's shouldAutorotateToInterfaceOrientation, I also added implementations for
    _preferredInterfaceOrientationGivenCurrentOrientation
    and
    _isSupportedInterfaceOrientation
    in a category of UIViewController in the native code.
    Then, in the Actionscript code, added an event listener for StageOrientationEvent.ORIENTATION_CHANGING (with high priority and use_capture = true) in Actionscript to prevent resizing of the stage, which can occur even if the orientation doesn’t change.
    This fixed it for me, but, as it messes with UIViewController, it makes it tricky to have views which have different orientation behaviour (if you want one view to be able to rotate in all directions, but others only to support Landscape, for example).
    I've posted details and example code here: http://blog.diadraw.com/native-extensions-for-mobile-air-apps-getting-round-the-orientatio n-issue/

  • Exception in C++ air native extension for Mac OS X

    I develop air extension for ios and mac os x.
    I use the same code on ios and mac.
    For ios all good.
    But on mac - have problems.
    In extension I use std::vector. Code example:
    vector<Type*>* types; types = new vector<Type*>();  Type* type = new Type(); types->push_back(type);
    Application crashed by line:
    types->push_back(type);
    I tried add try/catch block - but application crashed too.
    I don't know what wrong. This code is work fine on ios and in console application for mac.

    Workaround found:
    Need to launch adl as a line command (depends on your directory config, of course):
    /Applications/Adobe\ Flash\ Builder\ 4.6/sdks/4.6.0/bin/adl -runtime /Library/Frameworks/ -extdir /Users/vandrito/Desktop/simpleAirNativeExtension/launch/extensions -profile extendedDesktop /Users/vandrito/Documents/Projets/o3sui/simpleAirNativeExtensionTest/bin-debug/simpleAirN ativeExtensionTest-app.xml
    Pay attention to the library location: it is the one of the Air 3.1 install. Did not check the same trick with Flash Builder 4.6 Air install.
    Then use a fake web debugger to connect to the process (if compiled in debug mode). See here how to do (french):
    http://www.flex-tutorial.fr/2010/08/05/air-android-debug-sur-mobile-froyo-emulateur-avec-f lash-builder-4/
    Victor

  • In App Purchase Native Extension for Android

    Hi All
      I was wondering whether anyone has done any work on an In App Purchase native extension for Android?  If one does not already exist I am going to be starting work on one shortly. 
      I did a google search and found this stackoverflow post http://stackoverflow.com/questions/8053049/air-native-extensions-for-android-in-app-billin g .  The poster is having difficulty with the call back from the Android market.    One of the responses mentions that 'Native extensions have an issue with java libraries' .  Has anyone else come across this issue and if so how did you fix it? 
    thanks for any help you can provide!
    Mark

    I have just finished a (commercial) extension that lets you directly do in-app purchases on android from Actionscript 3. You can check it out here.

  • Native Extension for AIR publishing error : framework not found

    Hello,
    I'm trying to build an iOS app using native extensions for AIR, but when I publish, I've an error message saying : framework not found
    I tried with this ANE for GameCenter integration : https://github.com/StickSports/ANE-Game-Center
    it says " ld: framework not found GameKit "
    Same problem with GREE Platform SDK for AIR :
    https://docs.developer.gree.net/en/globaltechnicalspecs/#sdkforair
    it says " ld: framework not found CoreTelephony "
    The thing is that these frameworks are already included, I guess.
    I'm using flash cs6 on mac, and I've included the path to iOS SDK in the publishing settings.

    Are you using the ANE from there or are you recompiling the ANE at your end?
    If you are recompiling, please make sure that you are using the platform.xml file they have provided.
    If you are using their precompiled ANEs, probably, the path to iOS SDK is not correct. It should be upto the folder iPhoneOSx.y.sdk.

  • External library inside Air native extension for android

    Hello everyone,
    First, I've been looking throught this topics
    - http://stackoverflow.com/questions/7732742/air-3-native-extensions-for-android-can-i-how-t o-include-3rd-party-libraries
    - http://stackoverflow.com/questions/24626380/how-to-include-additional-jar-in-android-nativ e-extension-for-adobe-air-mobile
    I got a similar problem. But not exactly the same. And the solution didn't worked for me :(.
    First of all, I don't have any visible error.
    -I can easily talk between java and action script.
    -The gateway is set without problems.
    My problem comes when, from my java-side-part of the extension, I try to call a 3rd party library. This library is (and I think this is where I do something  wrong) linked to my project as an external lib, in .jar format.
    So when I make a call to 3rd party library, it just doesn't print anything. Neither on the adobe part or on the java part. The logs that are before my call are printed but not the ones after.
    I tried different solutions that are:
    -Taking all compiled class files of my external lib and add it inside the main native extension jar [link1]
    same result (no errors)
    -including the 3rd party jar inside the ANE by adding a dependence file that require the .jar [link2]
    with this method i got this error that I don't get
    > aapt tool failed:ERROR: input directory '--auto-add-overlay' does not exist
    My third party library also include's itself some external .jars so do I need to include every jars inside the same packaged jar?
    I can see that a lot of people are dealing with issues like that so my question would be:
    What is the best way to include 3rd party library inside android AIR Native Extension ?.
    For information, here is what I do to create the ANE
    >adt -package -target ane AirInfinitGameANE\AirInfinitGame.ane AirInfinitGameASLib\src\extension.xml -swc AirInfinitGameANE\AirInfinitGameASLib.swc -platform Android-ARM -C AirInfinitGameLib .
    - AirInfinitGameASLib: just the folder with the actionScript part and the config xml file
    - AirInfinitGameANE: folder in the one that will be the native extension
    - AirInfinitGameLib: the eclipse java project. I need to put in that folder the airInfinitgamelib.jar(extension jar) and the library.swf (from the swc file) in order to beeing able to compile the ANE.
    Here it is ! Thanks a lot for thoses who'll read me.

    I had the same problem recently and fixed it as follows;
    - Extract the 3rd party jar file and copy the class folder (usually named "com" in the root of the jar) to my project.
    - Under Project Properties -> Java Build Path -> Libraries click "Add class folder" and add the "com" folder you just extracted from your .jar.
    Hope this helps

  • Any good online resources for pages templates?

    I typically use Google docs for basic word processing. Needed some more robust features from time to time, but I hate having to run Word in VM Ware and not a fan of Word anyway. Really loving Pages so far.  Any good online resources for pages templates?
    Trent
    < Edited By Host >

    There are several options for templates you can use in Pages. First, there those submitted by other users & available at iWork Community.
    You'll find some links in the Resources section  here.
    I haven't tried these Microsoft sites for awhile, so I'm not sure if these steps are still valid, but it does give you a starting place.
    Try Microsoft Office templates. to find links to many PC templates. Then comes the Microsoft trickery part. Choose the category then sub-category & then click the name of a template. Next is a page with a "download" button that takes you to the "Your operating system doesn't meet system requirements" page. All that means is that you can't use their automatic download service. Click the "download now" button in the section to manually download. Somewhere along the process was a license agreement. The file I chose downloaded as 06369101.cab. Double-clicking it launched Stuffit & resulted in a folder. I then had to change the .dot file in the folder to have the .doc extension. It then opened in Pages with only one unsupported warning.
    The Mactopia site has a lot less templates to choose from, but was less involved to download. Most templates for Word will open nicely in Pages. I haven't come across one that doesn't, but that doesn't mean someone else might. The only thing to watch for is the file extension. Some Word templates have an extension other than .doc. You will still be able to use them, just change the extension to .doc in the Finder or Pages won't recognized them as Word files. Of course, you can't change just any file's extension to .doc & have Pages open it. It must be a Word document.

Maybe you are looking for

  • Single quote ' in output difficulty

    I'm trying to output a single quote, then a value, but I'm having trouble. Any solutions? I've tried using '', ''', '(...)'.     tabFIELD = 'tab-field'.           varVALUE = 'CCC'.           CONCATENATE cond                     tabfield              

  • PO Line column displaying same data

    Hello, I have created a custom .rtf for the Standard PO. When previewing the pdf in iSupplier one of the columns (attribute1 from PO_LINES) is displays the same data when a PO has multiple lines. I currently have the following in the BI Properties fo

  • Host Custom client from TES server?

    I am working on a custom webapp client for Cisco Tidal Enterprise Scheduler that will let me quickly view running jobs, restart jobs, etc. (similar to the iOS app offers).  The intent is to only show the features that I want and need quick access to.

  • IMovie 09 many Bugs

    1) Program cuts the audio track of time. I created the audio file length 2:04:12 minutes, iMovie this track down to 1:25:00 minutes. 2) I've created in Photoshop frame with black edges and alfachannel, in order to remove the rough edges. In this case

  • Speed limit pb

    Hello fellows! I was asked to build a program that calculates the Fine when you exceed the speed limit. When you exceed 120miles/h the fine is 100$ plus 10$ for every additional mile/h. I wrote a code,but something is wrong with it. When you drive at