Using as1 in flash cs5

hi i am using macromedia flash 6 at the moment and i realise i need to update to adobe cs5 however it has taken me so long
to learn  the as1 scripting language  that i was wondering if i can still access and edit and publish my  old swfs in adobe without the
need to learn as3
goof

Welcome to our community
Unfortunately, you goofed. This forum is for discussion of a specific output type called FlashHelp produced from an Adobe application known as RoboHelp. It is not for seeking help with using Adobe Flash.
You need to visit the link below and re-post your issue in the other forum.
Click here to view
Cheers... Rick

Similar Messages

  • Alt key stuck when using mouse in flash CS5.5 on os x lion. sucks. please help.

    Hi there,
    since I've updated to lion flash cs5.5 is utterly unusable. The alt key is always stuck in this app when I use the mouse. So if I select something then try to move it, it copies it (as if I was holding down alt key). It basically means I can't use flash for anything..
    Has anyone else had this issue and resolved it?
    I saw similar forum posts for photoshop cs5 and snow leopard, and even tried the utility provided on those forums. Didn't work.
    I removed my wacom tablet driver,
    I reinstalled flash,
    I shut down EVERYTHING except flash.  Nothing works - alt key is always active in flash.
    Is this some kind of bad joke from Adobe? Is there really no fix for this? I can't believe it - honestly...
    Additional note - in the key remapping page - it reckognizes the alt key normally, and all other key combinations - it is only when using the mouse that the alt key is stuck.
    El mensaje fue editado por: georgecookontheroad

    Hello,
    I was having the same exact problems with Flash Professional after upgrading my OS X to Lion.  (Alt/Option key seems like it's stuck / Duplicating objects on stage just by clicking and moving the object.)  My main problem was not being able to curve a straight line with the Arrow tool.  Instead it would create a corner point as if the Alt/Option key was being held.
    I stumbled upon this thread before finding my solution so I thought I'd share what worked for me.
    Here is the thread I found with the solution that worked:
    http://forums.adobe.com/message/5222999
    Basically I had a program called AirDisplay installed.  AirDisplay allows me to use my iPad as a second monitor for my Mac.  So if you have this program installed, or one similar to AirDisplay, uninstalling this program may get your Flash Professional to work correctly again.  It certainly did for me to my amazement.
    Hope this works for you or anyone else who is experiencing this weird and frustrating problem!

  • Using .swc in Flash CS5

    I have a user who is having trouble using my library .swc in flash CS5.
    I do not have CS5 to help him out much; but the .swc does work fine with mxmlc from the Flex SDK, as well as under flashdevelop using the Flex SDK. And although not this exact version of the .swc I have previously found it work fine under CS4 and have other users with CS3 who do not have any trouble.
    under mxmlc, using the compiler options:
    --include-libraries $(NAPE_BIN)/debug_nape.swc
    There are no issues, and everything works as expected.
    The error my user is receiving is about an undefined reference to a specific class contained in the .swc (DummyNapeMain)
    This error appears also with mxmlc if I use the option --library-path instead of --include-libraries
    I repeat the test case here if it will help to find a working configuration for CS5.
    package {
         import flash.display.MovieClip;
         import flash.events.Event;
         import nape.util.*;
         import nape.space.*;
         import nape.phys.*;
         import nape.shape.*;
         import nape.geom.*;
         public class Main extends MovieClip {
              public function Main() {
                   super();
                   if(stage!=null)
                        addEventListener(Event.ADDED_TO_STAGE, init);
                   else init(null);
              public function init(ev:Event):void {
                   if(ev!=null) removeEventListener(Event.ADDED_TO_STAGE, init);
                   haxe.init(null);
                   var debug:Debug = new BitmapDebug(600,600,0x333333);
                   addChild(debug.display);
                   var space:Space = new Space(new Vec2(0,400));
                   var walls:Body = new Body(BodyType.STATIC);
                   walls.shapes.add(new Polygon(Polygon.rect(0,0,600,20)));              
                   walls.shapes.add(new Polygon(Polygon.rect(0,600,600,-20)));              
                   walls.shapes.add(new Polygon(Polygon.rect(0,0,20,600)));              
                   walls.shapes.add(new Polygon(Polygon.rect(600,0,-20,600)));              
                   walls.space = space;
                   for(var i:int = 0; i<100; i++) {
                        var b:Body = new Body();
                        b.position.setxy(50+Math.random()*500,50+Math.random()*500);
                        b.shapes.add(new Polygon(Polygon.box(16,16)));
                        b.rotation = Math.random()*2*Math.PI;
                        b.space = space;
                   addEventListener(Event.ENTER_FRAME, function (ev:Event):void {
                        space.step(1/60,10,4);
                        debug.clear();
                        debug.draw(space);
                        debug.flush();
    the .swc is available at: https://github.com/deltaluca/nape/raw/master/bin/release/debug_nape.swc
    Thank you.

    I downloaded a CS5.5 trial to test this out myself.
    The error does indeed happen with the test case;
    my user found a hack to get around the error which is to do:
    DummyNapeMain;
    (just like that) to force the compiler to include it from the .swc and prevent the error occuring.
    Why is there no way in Flash CS5/5.5 to have the entire .swc included without flash trying (and failing) to determine what does, and doesn't need to be included?

  • Use WCF with Flash CS5

    Hi,
    Is it possible to call WCF service with flash CS5.
    Regards------Amit

    I am trying this with the following code
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.remoting.RemoteObject;
    import mx.rpc.soap.*;
    import mx.rpc.soap.*;
    import flash.events.Event;
    import mx.messaging.channels.StreamingAMFChannel;
    var wcfProxy:RemoteObject= new RemoteObject( "GenericDestination" );
    wcfProxy.source = "http://Domain.org/Service.svc?wsdl";
    wcfProxy.addEventListener( ResultEvent.RESULT, gotResult );
    wcfProxy.addEventListener( FaultEvent.FAULT, gotError );
    var arg1:Number=5;
    var arg2:Number=7;
    var user:String="test";
    var opList:String= "a";
    function calculate(e:Event)
            wcfProxy.logOn(user,user);
    function gotResult( event:ResultEvent ):void
        trace("The Vlue is = "+event.result.toString());
    function gotError(event:FaultEvent):void
        trace("Error is = "+event)
    sndBtn.addEventListener(MouseEvent.CLICK,calculate);
    but it always give the following error
    Error is = [FaultEvent fault=[RPC Fault faultString="[MessagingError]" faultCode="InvokeFailed" faultDetail="null"] messageId="0102BC47-CED4-B019-F8FE-338684D3DBEB" type="fault" bubbles=false cancelable=true eventPhase=2]
    Please help me out
    Thanks

  • Recommended CP5 - Flash CS5 Workflow?

    Hi all,
    I'm wondering what the best workflow is for projects using CP5 and Flash CS5. Is it better to embed Flash within a larger CP project? How well does embedding CP .swfs into a Flash project work? What are the gotchas associated with working either way? I'm using AS3 and current versions of CP and Flash on a Mac.
    FYI, here's specifically what I'm trying to do: the e-learning course opens to an interface with multiple buttons (images with down/up states, animations, etc.); the main interface is essentially a simulation of a process (i.e., not a software simulation) so it also includes text fields, sliders, listboxes and other interface elements. There are also Help and Hint buttons that need to display content (currently I'm thinking these will open in a new window sitting within the larger interface (kind of like how the Flash stage is a smaller window within the larger Flash IDE), or they could overlay the entire screen).
    I think the larger interface/process simulation lends itself better to Flash, so I would prefer to use Flash for this and then import CP questions and content into the Flash file. CP content just needs to play, but the quiz questions need to be able to record scores out to the LMS and I also need access to quiz results in the Flash file. I'm concerned that LMS reporting won't work properly because my CP files will just be individual quizzes and not part of a larger CP "course."
    Is it possible in this scenario to build the entire project in CP with these project requirements? Would I be able to import Flash animation/AS3 programming .swfs into CP, place these at specified screen locations and then pass values back to CP for processing?
    I'd also like to be able to show the Top 10 scores on the process simulation. Surely CP doesn't have the capability to show this kind of thing does it?
    For all of these reasons, I'm wondering if it would be preferable to create a CP project, and just load the Flash  process simulation full screen within that CP project as, essentially, a  standalone .swf? If I were to do this, I still need full Flash  capability, including reading/processing XML, database access for Top 10 scores, etc...  What issues are there with this approach where the Flash .swf is essentially a child .swf of the CP project? In particular, what are the gotchas?
    Any thoughts/best practices you may have on how best to architect the structure for this type of project are surely welcomed!
    Kevin

    Any widget can offer an interface that allows its customization. If your animation should vary based on developer's choices, then you put these choices in the widget interface. If you want to see for yourself, just insert any widget on the stage (from the widget panel) and double click on it. It will open the widget interface.
    However, from what I understand, you animation does not need to be customized so it's not mandatory to build it in a widget. Make it a widget only if you need to present customization options.
    Whyves
    www.flash-factor.com

  • MP3 Player in AS3 Flash CS5 with autoresume feature?

    I created a web site with an MP3 player on several of the pages. I created the player using AS3 in Flash CS5 Professional. It has a volume slider on it that I set the initial value to 2. It music that is loaded is identified in an XML file. If the user changes the volume, pauses or stops the music, I want to use autoresume (or something equivalent) to make sure the player continues in the same status across pages.The player is embeded on the pages using SWFObject.
    I have searched for several days on the web trying to find a solution and have not found one. I don't know if there is something I need to do in AS3, in Flash, on my pages or if it can be handled in PHP or XML. Does anyone know a good approach?

    Thank you for your help. I put the code in and it works except for one thing, the position of the slider does not change when I bring the player up the second time, it is always set to the default position. I do not know what value to store and reset for the slider position.
    I have three different books that I have searched and I have searched on the Internet but cannot find the answer. I have pasted the Action Script below. I hope you can help me. In the meantime, I will continue to look more myself. Thank you again.
    import flash.display.DisplayObject;
    import fl.events.SliderEvent;
    import flash.media.SoundTransform;
    import flash.net.SharedObject;
    // rewind and fast forward rate
    const SEARCH_RATE:int = 3000;
    // XML file that holds reference to the mp3 files and used to load the tracks
    const XML_FILE:String = "tracks.xml";
    const FORWARD:String = "forward";
    const BACKWARD:String = "backward";
    var playDirection:String;
    var index:Number = 0;
    var trackPos:Number = 0;
    var trackOn:Boolean = false;
    var trackXML:XML;
    var trackList:XMLList;
    var urlRequest:URLRequest;
    var urlLoader:URLLoader;
    var track:Sound = new Sound  ;
    var newTrack:Sound;
    var newUrlRequest:URLRequest;
    var chan:SoundChannel = new SoundChannel  ;
    var context:SoundLoaderContext = new SoundLoaderContext(7000,false);
    var trackTimer:Timer = new Timer(200);
    var trans:SoundTransform;
    var mySO:SharedObject = SharedObject.getLocal("MP3Vol");
    var currVol:Number = mySO.data.MP3CurrVol;
    if (!mySO.data.MP3CurrVol) {
        currVol = .2;
    // create a new URLRequest object and use to reference the XML file
    urlRequest = new URLRequest(XML_FILE);
    // create a new URLLoader object to load the XML file
    urlLoader = new URLLoader(urlRequest);
    urlLoader.addEventListener(Event.COMPLETE, onceLoaded);
    urlLoader.load(urlRequest);
    //listener for the volume slider;
    volSlide.addEventListener(SliderEvent.CHANGE, volumeChange);
    function onceLoaded(e:Event):void
        trackXML = new XML(e.target.data);
        trackList = trackXML.track;
        urlRequest = new URLRequest(trackList[index].path);
        trans = new SoundTransform(currVol);
        track.addEventListener(Event.COMPLETE, trackCompleteHandler);
        track.addEventListener(ProgressEvent.PROGRESS, trackProgressHandler);
        track.load(urlRequest, context);
        chan = track.play(trackPos);
        chan.soundTransform = trans;
        chan.addEventListener(Event.SOUND_COMPLETE, playNext);
    function trackCompleteHandler(e:Event):void
        trackOn = true;
        title_txt.text = trackList[index].title;
        performer_txt.text = trackList[index].performer;
        e.target.removeEventListener(Event.COMPLETE, trackCompleteHandler);
        e.target.removeEventListener(ProgressEvent.PROGRESS, trackProgressHandler);
    function trackProgressHandler(pe:ProgressEvent):void
        var percent:int = (pe.target.bytesLoaded / pe.target.bytesTotal) * 100;
        performer_txt.text = "Loading...";
        title_txt.text = percent + "%";
    play_mc.addEventListener(MouseEvent.CLICK, playTrack);
    stop_mc.addEventListener(MouseEvent.CLICK, stopTrack);
    next_mc.addEventListener(MouseEvent.CLICK, nextTrack);
    prev_mc.addEventListener(MouseEvent.CLICK, prevTrack);
    pause_mc.addEventListener(MouseEvent.CLICK, pauseTrack);
    ffwrd_mc.addEventListener(MouseEvent.CLICK, ffwrdTrack);
    rewind_mc.addEventListener(MouseEvent.CLICK, rwndTrack);
    function playTrack(e:MouseEvent):void
        trackTimer.stop();
        if (! trackOn)
            newUrlRequest = new URLRequest(trackXML.track[index].path);
            newTrack = new Sound  ;
            newTrack.addEventListener(Event.COMPLETE, trackCompleteHandler);
            newTrack.addEventListener(ProgressEvent.PROGRESS, trackProgressHandler);
            newTrack.load(newUrlRequest, context);
            chan = newTrack.play(trackPos);
            chan.soundTransform = trans;
            chan.addEventListener(Event.SOUND_COMPLETE, playNext);
            play_mc.removeEventListener(MouseEvent.CLICK, playTrack);
    function stopTrack(e:MouseEvent):void
        trackTimer.stop();
        if (trackOn)
            chan.stop();
            trackOn = false;
            play_mc.visible = true;
            play_mc.addEventListener(MouseEvent.CLICK, playTrack);
        trackPos = 0;
    function nextTrack(e:MouseEvent):void
        if (index < trackList.length() - 1)
            index++;
        else
            index = 0;
        trackPos = 0;
        chan.stop();
        newUrlRequest = new URLRequest(trackList[index].path);
        newTrack = new Sound  ;
        newTrack.addEventListener(Event.COMPLETE, trackCompleteHandler);
        newTrack.addEventListener(ProgressEvent.PROGRESS, trackProgressHandler);
        newTrack.load(newUrlRequest, context);
        chan = newTrack.play(trackPos);
        chan.soundTransform = trans;
        chan.addEventListener(Event.SOUND_COMPLETE, playNext);
        track = newTrack;
    function prevTrack(e:MouseEvent):void
        if (index > 0)
            index--;
        else
            index = trackList.length() - 1;
        trackPos = 0;
        chan.stop();
        newUrlRequest = new URLRequest(trackList[index].path);
        newTrack = new Sound  ;
        newTrack.addEventListener(Event.COMPLETE, trackCompleteHandler);
        newTrack.addEventListener(ProgressEvent.PROGRESS, trackProgressHandler);
        newTrack.load(newUrlRequest, context);
        chan = newTrack.play(trackPos);
        chan.soundTransform = trans;
        chan.addEventListener(Event.SOUND_COMPLETE, playNext);
        track = newTrack;
    function pauseTrack(e:MouseEvent):void
        if (trackOn)
            trackPos = chan.position;
            chan.stop();
            play_mc.visible = true;
            play_mc.addEventListener(MouseEvent.CLICK, playTrack);
            trackOn = false;
    function ffwrdTrack(e:MouseEvent):void
        if (trackOn)
            playDirection = FORWARD;
            trackTimer.addEventListener(TimerEvent.TIMER, trackSearch);
            trackTimer.start();
    function rwndTrack(e:MouseEvent):void
        if (trackOn)
            playDirection = BACKWARD;
            trackTimer.addEventListener(TimerEvent.TIMER, trackSearch);
            trackTimer.start();
    function trackSearch(te:TimerEvent):void
        trackPos = chan.position;
        chan.stop();
        chan.removeEventListener(Event.SOUND_COMPLETE, playNext);
        if (playDirection == FORWARD)
            if (trackPos + SEARCH_RATE < track.length)
                trackPos +=  SEARCH_RATE;
                chan = track.play(trackPos);
                chan.soundTransform = trans;
                chan.addEventListener(Event.SOUND_COMPLETE, playNext);
            else
                if (index < trackList.length() - 1)
                    index++;
                else
                    trackPos = 0;
                    chan.stop();
                    newUrlRequest = new URLRequest(trackList[index].path);
                    newTrack = new Sound  ;
                    newTrack.addEventListener(Event.COMPLETE, trackCompleteHandler);
                    newTrack.addEventListener(ProgressEvent.PROGRESS, trackProgressHandler);
                    newTrack.load(newUrlRequest, context);
                    chan = newTrack.play(trackPos);
                    chan.soundTransform = trans;
                    chan.addEventListener(Event.SOUND_COMPLETE, playNext);
                    track = newTrack;
                    te.target.stop();
                    te.target.removeEventListener(TimerEvent.TIMER, trackSearch);
        else if (playDirection == BACKWARD)
            if (trackPos - SEARCH_RATE > 0)
                trackPos -=  SEARCH_RATE;
                chan = track.play(trackPos);
                chan.soundTransform = trans;
                chan.addEventListener(Event.SOUND_COMPLETE, playNext);
            else
                if (index > 0)
                    index--;
                else
                    index = trackList.length() - 1;
                trackPos = 0;
                chan.stop();
                newUrlRequest = new URLRequest(trackList[index].path);
                newTrack = new Sound  ;
                newTrack.addEventListener(Event.COMPLETE, trackCompleteHandler);
                newTrack.addEventListener(ProgressEvent.PROGRESS, trackProgressHandler);
                newTrack.load(newUrlRequest, context);
                chan = newTrack.play(trackPos);
                chan.soundTransform = trans;
                chan.addEventListener(Event.SOUND_COMPLETE, playNext);
                track = newTrack;
                te.target.stop();
                te.target.removeEventListener(TimerEvent.TIMER, trackSearch);
    function playNext(e:Event):void
        if (index < trackList.length() - 1)
            index++;
        else
            index = 0;
        trackPos = 0;
        chan.stop();
        chan.removeEventListener(Event.SOUND_COMPLETE, playNext);
        newUrlRequest = new URLRequest(trackList[index].path);
        newTrack = new Sound  ;
        newTrack.addEventListener(Event.COMPLETE, trackCompleteHandler);
        newTrack.addEventListener(ProgressEvent.PROGRESS, trackProgressHandler);
        newTrack.load(newUrlRequest, context);
        chan = newTrack.play(trackPos);
        chan.soundTransform = trans;
        chan.addEventListener(Event.SOUND_COMPLETE, playNext);
        track = newTrack;
    // uses volume slider value to control volume
    function volumeChange(e:SliderEvent):void
        currVol = e.target.value;
        trans.volume = currVol;
        chan.soundTransform = trans;
        mySO.data.MP3CurrVol = currVol;
        mySO.flush();

  • How can I use a file in flash cs6 that I made in flash cs5.5 air for android

    I have made an app in in air for android in flash cs5.5 air for android, and I want to edit it in cs6 and play it in cs6.
    But if I put Ctrl+Enter I got an error: createWin process failed with error 2: system couldn't find the file. I think the problem is that I'am using air for android 2.6 version in flash cs5.5 and version 3.2 in flash cs6. I have searched the web and found out that you can add older air versions using the sdk manager and I have tried it but first I get the error that the version of the sdk I am trying to install is not valid and after some files that I added to the sdk folder I get this error:Only SDK higher than version 3.4.2540 may be added.
    I there a possible way to update the air for android for an fla or apk? Or how can I let my originally file work fine in flash cs6??

    system couldn't find the file
    If you can´t get a more specific hint why your project can´t compile then I can think of some reasons theis error might occur
    1.You had files included besides the swf, like videos, audio files, xml files, that are not present in the place air expects them to be
    2.somewhere in your createWin functions there is a class import needed that isn`t present in 3.2 anymore, for example some classes or functions from classes that were valid in 2.6 are not any more in 3.2
    3. to achieve better eror logging, allow for debugging in the publishing options and see what specific lines in your code throw the error
    4.any air app needs a cert file, this needs to be created once, if you migrated to e new system it might be you never created that file which air expects to even begin the compiling process
    once you isolate the problem, report back

  • I would like to inquire how to use air 2.7 sdk in flash cs5.5.

    I would like to inquire how to use air 2.7 sdk in flash cs5.5.
    I have searched some solutions online and tried to copy air2.7 content in air2.6 folder(replaced the old one). I then did some efficiency tests but I don't see any improvements at all. Did I miss anything?
    Besides that, There's a display ratio problem if I publish the ipa in landscape mode. I can't interact with the program either. But it is not a problem if the ipa is published in portrait mode.

    http://forums.adobe.com/thread/864964?tstart=0

  • Embedding and using external fonts in Flash CS5

    I just upgraded to Flash CS5.  Font embedding is entirely different than it was in CS4.  I've been looking for examples online but none seem to show me a solution that matches what I need.
    In the project I'm working on, code changes the font a text box uses based on region and language.  To keep file size down I created separate swf files with the fonts embedded.  That way I only download the font I need.  The way I did this and the code I used in CS4 doesn't seem to work anymore.  Can someone please point me to a tutorial on this.
    Thanks

    OK, maybe you can help me figure out what I'm doing wrong.  Below is the code I'm using.
    LOADING THE FONT
    Font SWFs:
    I'm trying something new with CS5.  To create a swf with the font I need I'm creating a library symbol of the font with all the characters in it.  Titled it "Verdana".  I've also turned on Export for ActionScript and given the font a unique class name (VerdanaFont).  Then of course publish the swf, name it Verdana.swf, and put it in the correct location.  Does doing it this way automatically register the font?
    The Loader code:
    private function LoadFont()
    var fontPath:String = "assets/fonts/Verdana.swf";
    var fontLoader:Loader = new Loader();
    fontLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, createTextBox);
    fontLoader.load(new URLRequest(fontPath));
    The TextBox code:
    private function createTextBox()
    var tf:TextFormat = new TextFormat;
    tf.font = "Verdana";
    tf.align = "left";
    var textBox:TextField = new TextField;
    textBox.embedFonts = true;
    textBox.selectable = false;
    textBox.htmlText = "This is test text";
    textBox.setTextFormat(tf);
    stage.addChild(textBox);

  • Print in A4 size paper through AS3 using Flash CS5

    Hi all,
    Is any idea to print a job in A4 paper size by defult through AS3 using Flash CS5?

    Hi Shakeel,
    I am already having customised page format .
    It works fine when I choose Standard Device type EPLQ550
          But EPLQ550 is probably not supporting Arabic text.   It Gives ########
    Thats why I changed to Standard Device type ARSWIN
        Now Arabic text looks ok..... but Printer is not getting initialised after the first check. it skps.
    Pl suggest
    Thanks
    SK

  • Update the Player Flash CS5 Uses (In Test Movie)

    So Flash CS5 came with a beta version of Flash Player 10.1.
    Now that the official release of Flash Player 10.1 is released, how do I update what Flash CS5 uses when I Test Movie?
    I have so far updated the Flash Player in my browser and my standalone players but I can't seem to figure out how to update the Player that Flash CS5 uses.
    This wouldn't be so bad if the beta of 10.1 wasn't breaking my project because of bugs.
    Any help appreciated.

    More bumps, there has to be a way to do this.  Adobe wouldn't cement in a beta verison of Flash Player into Flash CS5 would they?

  • Using Air 2.6 with Flash CS5

    hey there all,
    here is what i am doing so far to use Air 2.6 with Flash CS5. i counts seem to find any help online with this, hope this helps someone...
    Setting Up Flash CS5
    1. replace Program FIles\Adobe\Adobe Flash CS5\Common\Configuration\ActionScript 3.0\AIR2.0\airglobal.swc with the airglobal.swc in the AdobeAIRSDK\frameworks\libs\air folder of the AIR 2.6 SDK zip file (AdobeAIRSDK.zip)
    This lets you compile with the new SDK and use all the new API for camera roll, microphone, etc.
    2. replace Program Files\Adobe\Adobe Flash CS5\AIK2.0 with the AdobeAIRSDK folder in the zip file (AdobeAIRSDK.zip) you downloaded from Adobe.
    now you can do a test movie in Flash CS5 and it will use the new ADL for testing in Flash (finally works with landscape!).
    Publishing
    for publishing, unfortunately you cant use the built-in publish for iOS. i wrote this batch file and use it (also you can write an ant task if you use FDT/Flash Builder). This is for windows 64bit...
    "C:\Program Files (x86)\Java\jre6\bin\java" -jar C:\AdobeAIRSDK\lib\adt.jar -package -target ipa-ad-hoc -storetype pkcs12 -keystore [KEYFILE].p12 -storepass [KEY PASSWORD] -provisioning-profile [MOBILE PROVISION FILE].mobileprovision [IPA NAME].ipa [XML FILE NAME].xml [SWF FILE NAME].swf Icon_29.png Icon_48.png Icon_57.png Icon_72.png Icon_512.png Default-Landscape.png Default-Portrait.png Default-PortraitUpsideDown.png Default-PortraitLandscapeLeft.png Default-PortraitLandscapeRight.png
    i have a 64bit system so i had to specify the 32 bit JRE and use the ADT jar for packaging. now i just double-click the batch file and it compiles for iOS.
    Adjusting the app.xml File
    the yourapp-app.xml file needs some tweaks from the CS5 packager to work in 2.6:
    1. namespace has to change from
    <application xmlns="http://ns.adobe.com/air/application/2.0">
    to
    <application xmlns="http://ns.adobe.com/air/application/2.6">
    2. the version node needs to be renamed versionNumber
    from
    <version>.5.572<</version>
    to
    <versionNumber>0.5.572</versionNumber>
    notice you need to include the leading zero if you arent using a whole number version
    ok, thats what i have so far, hope this helps...

    hey there all, for those on Windows,
    here is a compile script i put together for iOS using AIR 2.6. Copy and past this into a file named "compile ios.wsf". All you have to do is double-click and it will compile and paclage your app.
    the script assumes you have a versionNumber like: 0.4.123 it takes and incrememnts the build number (the last 3 numbers only) by one. i will imrpove this later.
    <?xml version="1.0" ?>
    <job>
    <script language="JScript">
         This file assumes you are using a 3-segment version system.
         It is not very inteligent, it just increments the last set of numbers in the
         versionNumber in the XML file by 1. !!be aware that it is not yet smart enough
         to update the second number!!
         // these properties change depending on your project
         var XML_FILE = "YourApp-app.xml";
         var SWF_FILE = "YourApp.swf";
         var IPA_FILE = "YourApp.ipa";
         var TARGET = "ipa-ad-hoc";
         var KEY_FILE = "dist.p12";
         var KEY_PASSWORD = "PASSWORD";
         var PROVISIONING_PROFILE = "YourApp.mobileprovision";
         var ICONS = "Icon_29.png Icon_48.png Icon_57.png Icon_72.png Icon_512.png";
         var SPLASH_SCREENS = "Default-Landscape.png Default-Portrait.png Default-PortraitUpsideDown.png Default-PortraitLandscapeLeft.png Default-PortraitLandscapeRight.png";
         // the location of your JRE/JDK and Air SDK files
         var JRE_BIN = "C:\\Progra~2\\Java\\jre6\\bin\\java";
         var ADT_JAR = "C:\\AdobeAIRSDK\\lib\\adt.jar";
         // this stuff shouldnt need to change
         var objXML = new ActiveXObject( "Microsoft.XMLDOM" );
         objXML.async = false;
         objXML.load(XML_FILE);
         var root = objXML.documentElement;
         var versionNumberNode = root.selectSingleNode("versionNumber");
         var versionNumberArray = versionNumberNode.text.split(".");
         var buildNumber = parseInt(versionNumberArray[2]) + 1;
         versionNumberNode.text = versionNumberArray[0] + "." + versionNumberArray[1] + "." + buildNumber;
         objXML.save(XML_FILE);
         var cShell = WScript.CreateObject("WScript.Shell");
         var compileCommand = '"' + cShell.CurrentDirectory + '\\compile ios.bat"';
         compileCommand = JRE_BIN + " -jar " + ADT_JAR + " -package -target " + TARGET + " -storetype pkcs12 -keystore " + KEY_FILE + " -storepass " + KEY_PASSWORD + " -provisioning-profile " + PROVISIONING_PROFILE + " " + IPA_FILE + " " + XML_FILE + " " + SWF_FILE + " " + ICONS + " " + SPLASH_SCREENS;
         //WScript.Echo(compileCommand);
         var runVal = cShell.run(compileCommand, 1, true);
    </script>
    </job>
    i will see if there's time to do a shell script of OSX and an ANT script for Eclipse...

  • Successfully using a Native Extension with Flash CS5.5 Pro, having issues

    Hey all,
    I'm trying to use a native extension due to an app rejection about the new storage guidelines. I'm hoping someone can help me figure out how to use a native extension from Flash CS5.5 and the adt command line utility (I've never used before).
    Apples storage guidelines in 5.0.1 require files saved to Documents (and other places) to be marked with the icloud "do not back up" bit. I'm trying to use Adobe's IOS 5.0.1 data storage native extension to do that as I have file sharing enabled and my app downloads files I want the user to be able to copy to their desktop.
    From the bits and fragments I'm reading all over, getting it to compile means using the command line adt tool (I've never used it before) because Flash Pro CS5.5 doesn't support native extensions. Also, this native extension requires a v14 SWF published (11.1) and CS5.5 only goes up to 10.2 (or higher if you install the players).
    I edited the AiriPhone.xml file and pointed it to an AIR 3.1 airglobal.swc and I have AIR 3.1 overlayed in flash. I can't test AIR for iOS anymore after that change but I can get it to compile a SWF. The adt command line adt utility stopped complaining that my SWF version was 13 when it needed 14, so I assume this worked?
    I am trying to compile a debug version so I can see trace statements to see if the native extension reports success on changing the bit. Here is my command line cobbled together from scraps of info on adobe.com and the -help data:
    adt -package -target ipa-debug -connect 192.168.1.80 -provisioning-profile myApp.mobileprovision -storetype pkcs12 -keystore myApp.p12 myApp.ipa myApp-app.xml myApp.swf dat AppIconsForPublish Default-Landscape.png Default-LandscapeRight.png -extdir extensionDir
    Before this iCloud change this app published directly from Flash Pro CS5.5 without any issues. I am only running into issues getting this app to work with this native extension and/or published correctly.
    I am including the folders "dat" and "AppIconsForPublish" as well as splash screens (this app is landscape-only) as well as that extension in the folder extensionDir.
    After putting in my password my app compiles into an IPA which I can drop into iTunes. It has the same general size as the IPA generated from Flash Pro. The icon is correct, etc.
    When I sync this file, the progress bar goes across, I see it loading on my iPad and then once it goes to install I get a popup saying "iTunes Sync: 'myApp' failed to install."
    Is there anything obvious wrong with my adt line? Has anyone else used this native extension? Ideas on what I can do to fix this?
    No, unfortunately I did not build this with Flash Builder. I am an avid user of it now and this would be a moot point as it uses ANEs and changes SWF versions trivially. I have to get this to compile using Flash Pro CS5.5 though.
    Any help is greatly appreciated!
    edit:
    Just FWIW, after I updated the .xml to use the latest AIR and such (so the version is 14) I removed the extension, exported purely from Flash Pro CS5.5 and the app works fine. As soon as I enable the <extension> in the XML I can no longer install the app. This just appears to be a noob adt publish issue.

    My app downloads PDFs, movies and other information-esque files and saves them to the apps Documents folder so they can be retrieved via file sharing. These files not being in something purgable like /Library/Caches and not having the "do not back up" bit is why I was rejected.
    update: It's definitely my command line building.. I took out the native extension completely and published from flash to an IPA and it works. I then run adt on the same SWF that just worked and it fails to install. So the install failing is my command line. I see this article and my command line is very similar. I'm really uncertain why it's failing.

  • Properly updating Flash CS5.5 to use the lastest Flash Player/Debugger

    Hey all,
    I'm just about to uninstall and reinstall at this point but I'm getting my install all screwed up trying to update Flash Pro CS5.5 to use Flash Player 11. I had it fine using the MXP provided in this adobe blog. Though that's 11.0 not 11.1. It did work however.
    I downloaded the latest Flash Player / Debugger .exe and the latest SWC for 11.1 and now Stage3D is no longer being seen. Clearly I screwed something up. I uninstalled and reinstalled the MXP after deleting the FP11 XML and FP11 directory but it's not working anymore.
    Is there a clear cut simple way to explain how to overlay the latest Flash Player for FPCS5.5?
    I used the AIR overlay instructions for 2.6 - 3.1 and it worked every time. Now I just need Flash Player overlay instructions.
    I'm very interested to start trying to Starling framework with Stage3D. I select FP11 to export and it tells me it can't find Stage3D. D'oh!
    Thanks for tips!

    Just an update. Upon printing flash.system.Capabilities.version I can see for CTRL+ENTER it's using version WIN 10,2,153,2. When I do a debug test it's using version WIN 11,1,102,55. That clearly explains why Stage3D is only available in debug testing.
    I did overlay release and debug .exes in the Flash CS5.5 Player folder. Does anyone know of another place I might need to overwrite the flash player or which .exe CTRL+ENTER actually launches?

  • Flash CS5.5 - font outlines still get embeded while using runtime sharing

    I have a project where I use several SWFs and have the fonts outlines stored into a seperate SWF. Within the .fla file's I have checked the Import for runtime sharing with the various font definitions.
    In the library the linkage part shows for every font the Import: classname
    To get a correct idea how things look within the IDE, I've checked several character ranges within the font properties so the preview renders correctly.
    In Flash CS5 everything was working correctly; no font outline was included within the SWF. The size report also shows this.
    When I create the SWF with Flash CS5.5 font outlines of the selected ranges still get embedded into the SWF. The file size of the SWF is much larger and the font outline information shows up in the size report.
    Anyone has a solution for this problem?

    I've just stepped into the same problem. Quick analysis of SWF content showed that all "import" tags have been removed and replaced by "font" tags (sometimes empty (empty - meaning no glyphs are there), sometimes not). I am publishing SWFs for Flash 8/ AS 2.0, thus, the SWFs should be FULLY compatible with old players. Technically speaking, importing of fonts is totally busted in CS5.5 and makes the CS5.5 completely unusable for us.
    Seems VERY much like a nasty bug. I am going to play a bit more with it in order to find a workaround. If not - I'll go back to CS5. I really hope Adobe will fix this bug ASAP. I have submitted a bug report about this issue.
    A bit more info about repro the issue: create font.fla and export font $Font from it. Create the second fla (main.fla) that imports the font $Font from  the font.swf. Publish all the swfs. Look inside the main.swf and instead of "ImportAsset" tag for font you'll see the regular "Font" tag (like it was never imported). However, the "ExportAsset" tag exists in font.swf and it looks completely fine.
    AB: Added some info

Maybe you are looking for

  • Mapping with Castor

    Hi, I have a problem and i hope that someone could help me. I have in my Java class one attribute that may appear like an XML element. But not the name of the attribute, the value of the attribute. I am looking a manual for the Castor but i don't fin

  • Text missing when printing PDF

    We're having a problem with printing PDFs to our networked large format Canon ipf8000 printer from our Mac Pros. We have two Mac Pros, both are having the same problem. When printing a PDF through Acrobat Pro that we have created using either from Ad

  • Problem with NSU

    Yesterday I updated NSU to the latest version,and now it cannot start,only show "you must restart your system for changes to take effect" or something,even I restarted a hundred times,and cleaned all the registry entries,uninstalled NSU,then installe

  • Vendor Evaluation Period Selection

    Dear Sir, We use ME63 for Vendor Evaluation , here we do not find any option to give  the period over which Vendor should be Evaluated . We have a requirement that Vendor Evaluation must be based upon the Purchases made during period 1-DEC-2007 to 31

  • How to incorporate  a Stored procedure with ARD file (ADD ON)

    hi experts i created a SP  which is called by the following code. Dim GD As SAPbouiCOM.Grid         Dim Query As String = "exec sp_Attendance_Report'" & vmonth & "','" & vyear & "'"         GD = objForm.Items.Item("10").Specific         GD.DataTable.