Iphone apps using flex remote objects with CF???

I am used to making web applications that use flex remote objects to interact with CF.
Is it possible to use remoting from an iphone app cross compiled using flash builder to interact with Cf remoting on a remote server?

Interseting, config files always seem to me like a strange way to do things.
I'm not exactly sure what you mean by this, but by default, that's how remoting works in Flex - you have channels and destinations defined on your server, and your compiler points to your config files and reads those values. So it's a little extra work to define them in AS instead.
Can you give me any tips on authenticating requests to cfc's from mobiles and how to protect my servers once I exposes cfc's to apps not hosted on the same server as CF?
There isn't really anything mobile-specific you need to do here. Exposing CFCs isn't any different than exposing CFM files that are accessed via a browser. You can use the standard CF session management and CF authentication (cflogin) - there are some examples available by Googling "coldfusion cflogin flex remoting".
Dave Watts, CTO, Fig Leaf Software

Similar Messages

  • [svn:bz-trunk] 5137: Fix failing security tests on BlazeDS/ trunk by using a remote object to invalidate the FlexSession at the end of each test method which should cause each test method to run with a new /clean session.

    Revision: 5137
    Author: [email protected]
    Date: 2009-03-02 10:28:59 -0800 (Mon, 02 Mar 2009)
    Log Message:
    Fix failing security tests on BlazeDS/trunk by using a remote object to invalidate the FlexSession at the end of each test method which should cause each test method to run with a new/clean session. It looks like some test methods were leaving some things in a bad state which was causing the next test that ran to fail. These may be legitimate bugs/issues so we should investigate further to see what sequence of events gets things into a bad state but for these tests we want all of the test methods to run in isolation.
    Modified Paths:
    blazeds/trunk/qa/apps/qa-manual/WEB-INF/flex/services-config.mods.xml
    blazeds/trunk/qa/apps/qa-regress/WEB-INF/flex/remoting-config.mods.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/security/stream ing-amf/JMSAuthSendSubscribeConstraintTest.mxml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/security/stream ing-amf/MessagingAuthProSendTest.mxml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/security/stream ing-http/JMSAuthSendSubscribeConstraintTest.mxml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/security/stream ing-http/MessagingAuthProSendTest.mxml
    Added Paths:
    blazeds/trunk/qa/apps/qa-regress/WEB-INF/src/qa/messaging/SessionManager.java

    In general theory, one now has the Edit button for their posts, until someone/anyone Replies to it. I've had Edit available for weeks, as opposed to the old forum's ~ 30 mins.
    That, however, is in theory. I've posted, and immediately seen something that needed editing, only to find NO Replies, yet the Edit button is no longer available, only seconds later. Still, in that same thread, I'd have the Edit button from older posts, to which there had also been no Replies even after several days/weeks. Found one that had to be over a month old, and Edit was still there.
    Do not know the why/how of this behavior. At first, I thought that maybe there WAS a Reply, that "ate" my Edit button, but had not Refreshed on my screen. Refresh still showed no Replies, just no Edit either. In those cases, I just Reply and mention the [Edit].
    Also, it seems that the buttons get very scrambled at times, and Refresh does not always clear that up. I end up clicking where I "think" the right button should be and hope for the best. Seems that when the buttons do bunch up they can appear at random around the page, often three atop one another, and maybe one way the heck out in left-field.
    While I'm on a role, it would be nice to be able to switch between Flattened and Threaded Views on the fly. Each has a use, and having to go to Options and then come back down to the thread is a very slow process. Jive is probably incapable of this, but I can dream.
    Hunt

  • Developing Iphone App using Flash Builder and Flex Air Mobile

    I started developing an Iphone app using the trial version of Flash Builder and was pretty impressed with how easy it was, then i hit problems:
    Trying to submit my app, I was getting invalid binary, using google i tracked this down to a change in the Apple App Store meaning that all apps needed to have native iphone 5 support, which meant updating to Air SDK 3.7
    Updating to AIR SDK 3.7 was a nightmare (mainly as a result of my failure to read the small print)
    Once I got SDK 3.7 to  work with flash builder / flex mobile i though i was there.
    However now i can produce a fast build but everytime i try and produce a standard / production build i get strange errors (air 3.8 does the same).
    My Question is - before i actually buy Flash Builder has anybody actually achieved the following:
         Building an Iphone App using:
         Flash Builder 4.7    (running on OSX)
         Flex Mobile 4.6
         Air 3.7
    If so how ?
    cheers
    Toby

    Thanks for your reply, its nice to know its not just me.
    the error i got when submitting to the App store where due to native support for IPHONE 5 which is now mandatory (from May 1st), looking around the internet the common soloution seemed to be upgrading to Air 3.7.
    The strange erorrs on 3.7 revolve around compiling a standard / production build (fast build works fine)
    the error is always the same (snippet shown below):
    Error occurred while packaging the application:
    Undefined symbols for architecture armv7:
      "__ZN7avmplus8Debugger9debugLineEi", referenced from:
          __ZN7avmplus9MethodEnv9debugExitEPNS_13CallStackNodeE in AOTBuildOutput-4.o
          __ZN7avmplus11BaseExecMgr22debugEnterExitWrapperNEPNS_9MethodEnvEiPj in AOTBuildOutput-4.o
    I have completly failed to work out why, but my gut feeling is its something to do with how the mac is compiling the code in standard build and unable to find a library it needs.
    cheers
    Toby

  • I set up "Find My Iphone App" using the same apple id and password on two iphones. Now the app only finds the phone that I did the setup on first. Do I need a different apple id and password on each phone for the app to run correctly?

    I setup two iphones on "Find My Iphone App" Using the same apple id on each phone. Now the app finds only the phone I setup first. Do I need to use two different apple ids? If your answer is yes then how do I errase the setup in the second phone and assign a new id?

    As TJBUSMC1973 states, and as I said earlier, the Find My iPhone app has nothing to do with your use of Find My iPhone. The app is just used if necessary to locate another iOS device from that particular iOS device. To see if both of your devices are being located in Find My iPhone, log into www.icloud.com and select Find My iPhone. Both of the devices should appear. If they do not, then go into whichever of the devices does not appear and make sure that Find My iPhone is activated. It has to be activated through iCloud, and for both to show on the same map, they both have to have the same iCloud ID.

  • Amfphp - flex remote object error event handler

    I'm using amfphp and I want it to return an error that the flex remote object error event handler will pick up. At the moment I can get only the result handler to do anything in flex.

    Hi,
    Try throwing an exception in the remote method. For example,
    function inverse($x) {
        if (!$x) {
            throw new Exception('Division by zero.');
        else return 1/$x;

  • Adding search to Dashcode (converted to a native iPhone app using webview)

    I'm developing an iPhone app using Dashcode and would like to add Search capabilities (e.g search through all the content in this app). Does anyone know how to add this using Dashcode? I'm converting the app to a native iPhone app using webview in Xcode. Just need a button with a search field and the output to be displayed somewhere....
    Any tips/help or URL links much appreciated.
    Thanks
    John

    Hello amybett,
    I have bad news and good news. The bad news is that your printer is not Airprint/ePrint capable. However, the good news is that with the HP ePrint Home and Biz iPhone app it does not need to be Airprint/Eprint capable, as long as it is connected to the same network as your phone.
    Here are the steps you will want to take to print something:
    1. Setup the app by completing the email registration and entering the code (which I believe you have).
    2. Select the item you wish to print using the menu in the app (Photo Albums, Saved Files, Web Browser, etc.).
    3. Once you select the item you should see the item and a large "Print" button under it.
    4. If the printer you want to print to is not listed above the "Print" button, select the icon on the right (wrench/computer) and select the printer you wish to use (along with other settings). 
    5. Tap on the "Back" button in the top left corner, then tap "Done" (blue button in the top right corner), and then tap the "Print" button to print your item.
    Let me know if you are still having trouble after following the guide above.
    If I have helped in any way, just click the Kudos star on the left. Also, if your issue has been resolved, don't forget to select Accept as Solution

  • Is there any way to find a lost iPhone even if the Find my iPhone app is not logged in with iCloud account?

    Hello everyone,
    I've lost my iPhone 5s yesterday in a party. The Find my iPhone app is not logged in with my iCloud account in the phone. Is there any way to find the phone? I'm really lost in this matter. Please help, if you can!
    Thank you.

    Thanks for taking the time to respond!!
    I didn't think so, but was hoping this was a time, that someone knew something that I didn't.

  • Can i catch a virus through Teamviewer App (doing a remote session with other computer) in my iPad?

    Can i catch a virus through Teamviewer App (doing a remote session with other computer) in my iPad?

    There are no viruses that can affect the iPad.  And a teamviewer session is a remote connection to a computer. Anything you do in the teamviewer session is happening on the remote computer not on your iPad, so unless you manually transfer a file to the iPad there's no way for a virus to move through the session.
    And as I said, even if you transferred an infected file from the remote machine, the virus can't run on an iPad so it would not affect it.

  • Where can I find out which iphone apps use data?

    Hi
    My iphone has wi-fi 24/7, yet my data usage is over the limit. 
    Where can I find a listing of which iphone apps use data and not wi-fi? 
    Your help will be greatly appreciated.

    If your phone is on wifi, then almost all apps will use it.  The exceptions are those from your provider.  For example, AT&T apps will always use their network.  To determine if an app is using data, you need to install DataMan Pro.  Even then, you will only get general info and on an hourly basis. Use the process of elimination to figure it out.

  • I have created an iPhone app using xCode and am now ready to publish it. Do I have to sign up to the $99/yr program in order to get a certificate?

    I have created an iPhone app using xCode and am now ready to publish it. Do I have to sign up to the $99/yr program in order to get a certificate? I keep getting the error message: CodeSign Error: code signing is required...although the app tests fine on the simulator. Does this mean that I need to pay the $99 to create the app or do you only need to pay if you want it published on iTunes?
    Any advice will be gratefully received.

    App Store Resource Center - Apple Developer

  • Is there any iphone app that makes me chat with BBM?

    Is there any iphone app that makes me chat with BBM?

    no but there are apps like kik messenger, whatsap and nimbuz, blackberrys and apple devices and adroids can download these applications and talk through there. hope this helps and the blackberry messenger app on the iphone it was suppost to happen but apparently its not going to now

  • Music  does not play on Iphone when using the Remote app for Itunes , is this normall.

    Hi all,
    I am using the remote App for ITunes on my IPhone 5,I can get the phone to operate
    ITunes perfectly but there is no audio coming from the phone, I am having a party and I
    want to play the same playlist  throughout the house without having it up at full volume.
    I was hoping to leave the laptop downstairs and plug the IPhone into a stereo upstairs.
    If this is normal ...........
    Is it possible to load the playlist on to 2 computers , and have them playing the same music
    simultaneously.
    Any suggestions please

    See http://discussions.apple.com/thread.jspa?messageID=9926596

  • Trying to create first iPhone app, use Interface Builder or Xcode first?

    I'm trying to create my first iPhone App, do I start with Interface Builder or Xcode first? And how do I link the two together?

    It's not really that simple -- you'll be working with both. Interface Builder is used to design the GUI (graphical user interface, which consists of the windows and buttons and text fields and so forth, the parts of the application that your user interacts with). Xcode, on the other hand, is used to write the code that tells that GUI what it's supposed to do, and how to do it. So, to answer your question as best I can -- generally, I would imagine you would want to start by creating the basic form of your GUI in Interface Builder and then start coding where appropriate in Xcode, then you'll move back and forth between the two (Xcode and Interface Builder) as needed.
    If you're new to programming and want to start with iPhone apps, I recommend picking up a book on the topic (Apress publishing has a book called "Beginning iPhone 3 Development: Exploring the iPhone SDK" that is a good one, and don't forget to take advantage of Apple's iOS Dev Center, which has lots of good documentation on most any topic that will be helpful in supplementing the information in the book you buy -- click [here|http://developer.apple.com/iphone/index.action] to go there).
    Keep in mind, however, that trying to learn to program iPhone apps will be difficult (to say the least) if you don't already know Objective-C, and the Apress book I recommended above will not be easy to follow without understanding Objective-C first. Objective-C an object-oriented extension of C, and it is the programming language that is used to develop iOS apps (apps for the iPhone, iPod touch, or iPad). I would definitely recommend learning Objective-C on the Mac before jumping in to iPhone development in specific. Apress has another book called "Learn Objective-C on the Mac" that I would recommend for this.
    Furthermore, since Objective-C is an extension of C, you won't have an easy time learning it without a prior understanding of the C programming language. Again, Apress has a book for this, called "Learn C on the Mac."
    Put simply, learning to program for the iPhone is not something that comes overnight -- it's a step-by-step process that takes patience, and you have to be willing to go through these steps if you want to learn to program properly for the iPhone.
    Step 1 -- learn the C programming language
    Step 2 -- learn the Objective-C programming language
    Step 3 -- apply your knowledge to developing for iOS (iPhone's operating system) with the Cocoa Touch framework
    Anyways, that's just my advice -- I definitely recommend taking the time to do it right and not jumping straight into the deep end, but in the end only you know what works best for you. Also, like I said, I definitely think investing in a book on the subject is worth the time and money, so let me know if you want any other recommendations for books beyond the ones listed above.
    Hope this was helpful to you, and best of luck with your journey toward programming for iOS.

  • Android Air App using AdMob "NULL Object" Error?!?

    Hi,
    I am currently developing an app using adobe air flashbuilder and I have incorporated AdMob type html adverts into it. The Adverts do come up nicely however if I run the app in debug mode I get this error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at model::AdMob/createAd()[C:\Users\Jack\Documents\Dropbox\Projects\App\App Final\src\model\AdMob.as:37]
    The Ads do still work regardless of this however this is then affecting other elements within the app so I would like to get rid of the error that is happening. Below is my code in the "AdMob.as" file where I believe the issue to be occuring, can someone please help me with this?
    package model
        import flash.display.Stage;
        import flash.events.Event;
        import flash.events.LocationChangeEvent;
        import flash.events.MouseEvent;
        import flash.geom.Rectangle;
        import flash.media.StageWebView;
        import flash.net.URLRequest;
        import flash.net.navigateToURL;
        public class AdMob
            // setup variables
            private var _stageWebView:StageWebView;
            private var myAdvertURL:String = "http://www.test.co.uk/AdMob/test.html";
            //private var myAdvertURL:String;
            private var adWidth:Number=480;
            private var adHeight:Number=85;
            private var stage:Stage;
            public function AdMob(adURL:String,_stage:Stage)
                myAdvertURL=adURL;
                stage=_stage;
                createAd();
            public function createAd():void {
                // check that _stageWebView doersn't exist
                if (! _stageWebView) {
                    _stageWebView = new StageWebView () ;
                    // set the size of the html 'window'
                    _stageWebView.viewPort = new Rectangle(0,stage.stageHeight-adHeight, 800, adHeight);
                    //_stageWebView.viewPort = new Rectangle((stage.stageWidth-adWidth)/2,stage.stageHeight-adHeight,adWidth,adHeight);
                    // add a listener for when the content of the StageWebView changes
                    _stageWebView.addEventListener(LocationChangeEvent.LOCATION_CHANGE,onLocationChange);
                    //add a listener for when the ad is loaded
                    _stageWebView.addEventListener(Event.COMPLETE,onComplete);
                    // start loading the URL;
                    _stageWebView.loadURL(myAdvertURL);
                // show the ad by setting it's stage property;
                //showAd();
            public function destroyAd():void {
                // check that the instace of StageWebView exists
                if (_stageWebView) {
                    trace("removing advert");
                    // destroys the ad
                    _stageWebView.stage = null;
                    _stageWebView = null;
            public function toggleAd():void {
                trace("toggling advert",_stageWebView);
                // check that StageWebView instance exists
                if (_stageWebView) {
                    trace("_stageWebView.stage:"+_stageWebView.stage);
                    if (_stageWebView.stage == null) {
                        //show the ad by setting the stage parameter
                        _stageWebView.stage = stage;
                    } else {
                        // hide the ad by nulling the stage parameter
                        _stageWebView.stage = null;
                } else {
                    // ad StageWebView doesn't exist - show create it
                    createAd();
            public function onLocationChange(event:LocationChangeEvent):void {
                // check that it's not our ad URL loading
                if (_stageWebView.location != myAdvertURL) {
                    // destroy the ad as the user has kindly clicked on my ad
                    destroyAd();
                    // Launch a normal browser window with the captured  URL;
                    navigateToURL( new URLRequest( event.location ) );
            public function onComplete(event:Event):void{
                //add the ad when it is loaded. If not it will apear a white rectangle until the load is complete.
                showAd();
            public function updateAd(adURL:String=null):void{
                if (adURL!=null){
                    myAdvertURL = adURL;
                destroyAd();
                createAd();
            public function showAd():void{
                if (_stageWebView)
                    _stageWebView.stage = stage;
            public function hideAd():void{
                if (_stageWebView)
                    _stageWebView.stage = null;

    @zhenya1919 - since you're currently going through this, could you please open a new bug report on this over at https://bugbase.adobe.com?  When adding the bug, please include some sample code or a sample application so we can quickly test this out internally.  If you'd like to keep this private, feel free to email the attachment to me directly ([email protected]). 
    Once added, please post back with the URL so that others effected can add their comments and votes.
    Thanks,
    Chris

  • Developing iPhone apps using SDK - what hardware to use?

    I am planning on developing iPhone apps but am new to the Mac. I have 20 years of development experience but all on PC and web/java side.
    I was planning on buying a MacBook 13" with 2.0GHz Intel Core 2 Duo and 2 Gig of RAM. In your experience is this enough power to develop apps using the SDK.
    What hardware configs do you any of you developers use to run the iPhone SDK?
    Thanks in advance

    Welcome to Apple Discussions.
    The iPhone software development kit simply requires an intel processor-based Macintosh, running the current release of Mac OS X 10.5. Your questions can be answered by browsing the iPhone developer site, starting here.

Maybe you are looking for

  • Value Mapping XI 3.0

    Hi all, I tried to set up a scenario using the value mapping functionality. Unfortunately the data is not changed at all on its way through the mapping program. Does anyone have an example of how to use value mapping in the right way? Message was edi

  • "use pdf reader name" choice is not shown even after deleting "mimetypes.rdf" file

    Multiple tabs open when attempting to open PDF files. Have updated Acrobat Reader to latest version X. Have followed trouble shooting instructions to select from drop-down menu the choice "use pdf reader name" (tools-options-application- Adobe). Foll

  • I lost my safari on my I pad how could I install it back

    I lost my safari on my I pad how could I install it back

  • Lobby ambassador can't see controller

    have added a new WLC to the WCS which has the same setup like others But when the lobby ambassador wants to add a guest user - he can't find this controller in the choice box what is missing?

  • Can not access content on TimeCapsule through Ethernet

    Hi, I have my iTunes library on my MacBook and most movies are references and the files is stored on my TimeCapsule. Using the new Apple TV i can access and play the content on the TimeCapsule (iTunes on the Macbook is running of course) through WiFi