. CurrentFrame should work here? What I am doing wrong?

On stage, I have an instance of a door with 3 images. Each image is the door of a different color. They are labeled "color1", "color1", and "Couleur3. I use this code to generate randomly

doors of different colors.

var min = 1;

var max = 4;

door1.gotoAndStop ("Color" + String (Math.Floor (Math.Random () * (max - min) + min)));

There is another instance of this door on the stage (called "door2") I would like to change colors based on the first door when it is selected. For example, if "door1" is red,

When you click on "door2" it turns red. If "door1" is blue, when "door2" is clicked it will turn blue.

I tried the following code changes:

If (door1.currentFrame == "color1") {}

DOOR2.gotoAndStop ("color1");

}

But every time that I change it, I get a different error message.

What am I doing wrong here?

This code is inside a function that causes "door1" changes color when you click it. My goal is to change the colors of the doors.

No currrentFrame is a string

so you should have to do

If (door1.currentFrame == 14) {/ / or whatever is the frame number is}

DOOR2.gotoAndStop ("color1");

}

but you can use this instead

If (door1.currentLabel == "color1") {}

DOOR2.gotoAndStop ("color1");

}

Tags: Adobe Animate

Similar Questions

  • Search for content of a file in Windows 7 does not work. What I am doing wrong?

    I read a bunch of messages on this website, as well as others, on the way to search for content in a file. I followed the instructions, but it does not work for me.

    As I understand it, if I'm looking for a file containing the word 'pelican', I must type

    content: "Pelican".

    It does not work.

    I also read that it speeds up the search if I turn on indexing. This is not feasible because there is more than 4 TB with a value of files on my company's server and indexing is apparently intended to apply only to files that are frequently used in areas that are frequently used.

    I guess I'm doing something wrong, because I've seen post this question even others and tell then the answer has worked for them, but it does not work for me.

    Any help would be appreciated.

    Just type Pelican in fact, content: is not necessary.

    If you do not want to reserve a site indexed, there is an option that you can set to make a slow files manual scan (although it might take hours or days or weeks for the search engine to open and analyze inside 4 TB with a value of files over a slow network connection.  I hope that the server is indexing on, even if you do not have.  If this isn't the case, you'll be sorely out of luck.

    This setting, I've mentioned is here:

  • I can't get the system restore to work. What I am doing wrong?

    "The response from the computer is always: cannot restore to this date.

    Maybe a conflict with your antivirus application.  See http://bertk.mvps.org/html/healthy.html (the server has a problem with several of the most relevant pages 1645 EDT Fri Sept 23.  If the pages do not load when you visit it, wait a bit and try again).

  • What I'm doing wrong here? It's driving me crazy!

    I can't understand what I'm doing wrong here. This displays the first line and then stops. WHY? I included the code and the error message. Help, please!

    < cfquery datasource = "manna_premier" name = "zone_report" >
    SELECT DISTINCTROW Users.UserID, Users.UserFirstName, Users.UserLastName, Users.UserZone, First (Orders.SaleDate) [FIRST of SaleDate], First (Orders.TerritoryManager) [FIRST of TerritoryManager], Sum (Orders.UserID) [sum of Orders_UserID], Count (*) AS [order number]
    THE USERS INNER JOIN Orders WE users. [Username] = orders. [User name]
    WHERE SaleDate BETWEEN #CreateODBCDate (FORM. Implementation) # AND #CreateODBCDate (FORM. End) #.
    GROUP Users.UserID, Users.UserFirstName, Users.UserLastName, Users.UserZone;
    < / cfquery >

    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 "/ >"
    < title > manna Prime - ZVP report < /title >
    < style type = "text/css" >
    <!--
    {.style1}
    do-size: 18px;
    make-weight: bold;
    }
    .style3 {make-size: 14px; make-weight: bold ;}}
    ->
    < / style >
    < / head >

    < body >

    < cfoutput >
    < span class = "style1" > < of police = "Tahoma" > ZVP #FORM report. Start # to #FORM. End #. < br / >
    < / police > < / span > < / cfoutput >

    < cfoutput query is group of 'zone_report' is "UserZone" >
    < span class = "style1" > < of police = "Tahoma" > #UserZone # area < / police > < / span > < br / >

    < cfoutput group = "Users.UserID" >
    < span class = "style3" > < of police = "Tahoma" > #UserLastName #, #UserFirstName # < / police > < / span > < br / >


    < table width = '500' border = '0' >
    < tr > < cfoutput >

    < td > < table >
    < td > #zone_report. RecordCount # < table >
    < td > < table >
    TotalOrders < td > < table >
    ClosePercentage < td > < table >
    TotalItems < td > < table >
    TotalNewItems < td > < table >
    < td > < table >
    < /tr > < / cfoutput >


    < /table >


    < / body >
    < / html >
    < / cfoutput >
    < / cfoutput >

    Here is the error message;

    The web site, you access has met an unexpected error.
    Please contact the site administrator.

    The following information is for the creation of Web sites for debugging purposes.
    Error occurred while processing request

    Column name not valid for the attribute of the group.

    The value specified for the attribute of the group Users.UserID does not specify a column name for the query.
    The error occurred in D:\Inetpub\mannapremier\zvp_report2.cfm: line 45
    43 : 
    44 :     <td></td>
    45 :     <td>#zone_report.RecordCount#</td>
    46 :     <td></td>
    47 :     <td>TotalOrders</td>
    

    Well, in your application, you are prefacing the name of the "UserID" column with the name of the source table: "users."

    SELECT DISTINCTROW TableName.UserID

    The source table name is only used by your database.  CF don't know nor care which table a column came. He spent just the sql in your database code.  When your database returns the information to cfquery, all CF sees is the names of the columns, not their source tables.  While he sees as only the names of columns:

    Users.UserID no username ...

    Users.UserZone not UserZone ...

    ... etc...

    The column name in the 'group' should be 'UserID'... not 'Users.UserID.  Because the CF has no idea what it means. If you ever want to display the names of the columns in your query, just do a dump to the variable "columnList":

    .. .the table SQL alias

    I wanted to tell the nameof the table, not of alias.

  • I have type in a new web site in the address bar. Press enter, nothing happens? Went to internet expl. ORER and tried. It worked. Uninstalled Mozilla twice. reinstalled. Still, the address bar does not go to the new site. What I am doing wrong?

    I type in a new web site in the address bar. Press ENTER. Wait. Wait. type in the same new website in the search bar. It goes straight. Uninstalled Mozilla twice. Reinstalled. Tried to go to a new web site. you press on enter. Nothing. What I am doing wrong? I tried this procedure in Internet Explorer and the new address was excluded.

    Hi markehrmann,

    I'll try from Firefox Firefox to solve the issues in Safe Mode. If you do not have the issue so that all your modules, extensions, and themes are disabled, you can try adding them in one by one until you find the culprit. You should look at the guide to troubleshooting Extensions and themes and article troubleshooting issues with plugins like Flash or Java to solve common Firefox problems as well.

    Hope this helps!

  • The attached VI works when I run it initially to create the XML file, but by pressing once the XML file is created, it is not up-to-date. What I am doing wrong?

    The attached VI works when I run it initially to create the XML file, but when I change the data and run once the XML file is created, it is not updated with new data. What I am doing wrong?

    Thank you.

    It sounds like the logic that has been written in VI

    Internal decision of true / false:

    (file exists: false) write in the file XML, unflatten for display

    (file exists: true) read the XML file, unflatten for display

    At no time when the file exists (true case) is the XML file updated...

  • What I am doing wrong? My custom keyboard shortcut will not work.

    CS5, Mac.

    I want to assign a keyboard shortcut for "isolate an object selected. I found the list shortcut and assigned an F key, but it doesn't work. I turned OFF all the contradictory system shortcuts, in "keyboard Options. What I am doing wrong?

    Thank you.

    Screenshot 2016-03-18 10.30.26.png

    Maybe worth a try: go to the Actions palette menu and activate the Mode button so that can quickly see if the F7 key is assigned to an action (which probably does nothing).

    F that are assigned to the actions keys supplant the F keys defined as General keyboard shortcuts.

  • Hi, my creative cloud libraries will not work. I get a comment to "something went wrong during the initialization" and I can't save anything in a library. what I am doing wrong?

    Hello

    my creative cloud libraries will not work.

    I get a comment to "something went wrong during the initialization" and I can't save anything in a library.

    what I am doing wrong?

    Hi Rachel,

    Please, try the following steps:

    • Close all applications CC
    • Complete the process monitor activity/task manager (CCLibrary).
    • Restart any application and check.

    Hope that helps!

    Kind regards

    Sheena

  • My video Html code does not work with chrome or firefox. What I am doing wrong?

    I am fairly new to this and am trying to embed a video from my computer in my site but when I publish it the html code that I use doesn't seem to work with firefox or chrome. What I am doing wrong?

    < object id = "MediaPlayer" width = "692" height = "690" type = "video/x-ms-asf" >

    < param name = "FileName" value = "S:\2015 Properties\2015 Active Properties\2494 Arnold Palmer Drive, Blaine MN 55449\Property Photos\Arnold Palmer - Video.mp4.en9r5uu.partial ' >

    < param name = "autostart" value = "false" >

    < param name = "ShowControls" value = "true" >

    < param name = "ShowStatusBar is preserved" value = "false" >

    < param name = 'ShowDisplay"value ="false">

    "" < embed type = "application/x-mplayer2" src = "S:\2015 Properties\2015 Active Properties\2494 Arnold Palmer Drive, Blaine MN 55449\Property Photos\Arnold Palmer - Video.mp4.en9r5uu.partial '.

    width = "692" height = "690" ShowControls = '1' ShowStatusBar is kept = "0" ShowDisplay = "0" autostart = "0" / >

    < / object >

    Hello

    As I see you are trying to add a MP4 video for Muse I advise you to use steps or widgets available in the link below

    link with the steps to add MP4

    How to integrate a mp4 video in my muse site.

    Free widget

    Musepen::HTML5 video player Widget

    Concerning

    Vivek

  • I am a member of creative cloud and bought the edition of students.  When I go to the Apps on my cloud he said "try."  But I bought it, I do not have a trial.  It should say "Download", not "Download Trial".  What I am doing wrong?  It is said that I paid

    Why am I not able to 'Download' cloud Apps edition I paid for students?  Everything he says is "Download Trial" or "Try" on my creative application of cloud.  I am frustrated because I paid for the full thing, not a trial.  Anyone know what I'm doing wrong?

    Then, I found a solution for my problem and maybe yours? It's the windows host file.

    If you cannot open the Web page and then reset the hosts file.

    • Launch an Internet, such as Firefox or Internet Explorer browser, and open one of the following links, depending on the version of Creative Suite:

      If you see a successful test message (see screenshots below), you have access to the activation servers. Activation of the trial or from your software.

      CS5.5: Test passed

      CS6 and later versions: Test successful

      Still problems? Go to step 3. Reset the hosts file.

    • Reset the hosts file:

      Note: you may need to deactivate you security software to change your hosts file.

      Windows

      1. Click Start > run, type % systemroot % \system32\drivers\etcand press enter.
      2. Right-click on the hosts file, and then select Open. Select the application Notepad open the hosts file.
      3. Save the hosts file: choose file > record under, save the file as hosts.backup, and then click OK.
      4. Look for the hosts file for entries referencing activate.adobe.com (for example,127.0.0.1 activate.adobe.com) and delete these entries.
      5. Save and close the file.

    If you still have problems I suggest you have a look here

    When I open my creative cloud application he asks me my serial number?

  • Try to download the latest update of Lightroom, but the download does not accept my password. The password works on the Adobe site, when I connect. What I am doing wrong?

    I try to install the latest update for Adobe Photoshop Lightroom 5. pkg, but the program does not accept my password that works when I connect to Adobe. What I am doing wrong?

    If you are using a Mac, then it might be the Mac you asking your Mac password to allow installation.

  • Overview of application icon - what am I doing wrong?

    I have read the kbase article and examined for messages but when even did not quite understand how flipping properly application icons.  I found the kbase article got halfway there and it seems to work, but not as I know reading the article.  I don't know that I'm doing something wrong.  I use Eclipse with v4.5 with a 8330 Simulator to test.

    Here's what I do now:
    Once completed the main application, I created a second application without code.  It is defined as another point of entry to my main application, has done started TICKING Autorun feature and has a png set in the project properties for the application icon.  It is also to pass the text "mistletoe" as an arg for the hand of my main application Sub in the properties of the application.

    In my main application, I have configured to be a system module in the properties of the application (don't think it was mentioned in the kbase article but if not then an icon shows the main application and the app of reversal) and added a similar to the following code in the Sub main.  According to the kbase article the bitmap/homescreen lines should be in another statement, but I moved it because of the problem I'm having (explained below).

    Public Shared Sub main (String [] args) {}
    Icon bitmap = Bitmap.getBitmapResource ("rollover.png");
    HomeScreen.setRolloverIcon (icon);

    If (args! = null & args.length > 0 & args [0] .equals ("gui")) {}
    new PhoneBookApplication () .enterEventDispatcher ();
    }
    }

    The problem

    As I said, it works, but according to the debugger 'mistletoe' text is passed to the Sub main of main application on AutoPlay and when the application is opened manually (shouldn't be my reading of the article) which means that the 2 lines of flipping that should be in the else statement were never executed.  Placing them out of the if it works correctly (even if the FI is not necessary at this stage because the condition is always true).  I'm surprised that the application attempts to start the application during automatic execution of the bearing another entry has no or a mistake or to launch the application but it has no the debugger indicates he's going through these lines of code (watch).  Can someone tell me what I am doing wrong?  I know it works, but I'd rather do it properly.

    Thank you

    Tim

    The problem seems to have been the line:

    HomeScreen.setRolloverIcon (icon);

    If I use the method call to an index, it works perfectly:

    HomeScreen.setRolloverIcon(icon,1);

    My first try at the top was obviously incorrect, but this correction and with the changes in the second post everything seems to work perfectly.  I don't know why it does not work without the index because this is what is shown in the samples.  A problem introduced in 4.5?

  • set and get variables - what am I doing wrong?

    I have a relatively small membership and I have almost everything included except a big problem - I need to set a variable and then to retrieve the results. I watched the video of Paul Trani on it and read the docs, and it does everything just for me.

    I have a symbol on the stage with the following code:

    ***************************

    Insert the code for the mouse, click here

    set the answer selected for later correct/incorrect omparison

    var current_selection = sym.setVariable ("CURRENT_SELECTED_EQUATION", "1");

    Alert (sym.getVariable (current_selection));

    ****************************

    When the composition is previewed I simply get "" in the alert.

    What I am doing wrong?

    No, it does not work like that, you should use the key while defining and get as below:

    sym.setVariable var current_selection = ("CURRENT_SELECTED_EQUATION", "1");

    Alert (sym.getVariable ("CURRENT_SELECTED_EQUATION"));

    HTH,

    Vivekuma

  • Can someone tell me what I'm doing wrong when you create a native extension for iPad? (Very detailed)

    My company is developing a game for iPhone and iPad using Flash cs5.5 and Air3.0

    The customer requires that certain features be supported - these things as GameCenter, rating, etc... which none are currently supported by flash for the iOS.

    However, they provide us with a bunch of xCode example files on how they want things to work.

    My idea was to bridge the gap in functionality by creating a native extension using the xcode source that was given to me, giving me the required functionality.

    But first, I need to truly CREATE a native extension, even just a base echo/hello everyone... I followed all the steps of various guides and tutorials and I have managed to create an ipa and put it on my iPad 2 to test, but when the program starts, nothing happens, I find myself with a black screen. When I comment on the lines of code that initialize the extension, it fires just fine.

    (and Yes, I even tried to put things in try blocks where there was a mistake - no luck)

    So I hope that someone can read through the process of what I do below and point out what I am doing wrong, or what Miss me.

    What I use:

    Mini Mac running OS x 10.7.2 - this is used to run xCode 4.1 build 4B 110

    PC - Windows 7 home 64 bit - running Flash CS5.5 (version 11.5.1.3469) with the 3.0 SDK inside AIR. I also have the sdk 3.0 air in a separate file for the command-line running. (This is my primary development platform)

    The PC has flash builder installed, but I've never really used it, and I don't know how to use it... everything that has been built to date has been done using Flash CS5.5

    So, here's what I did.

    The first thing we do is to create a library static .a on mac.

    I open xcode and create a new project.

    • Select iOS framework and library, then select "Cocoa touch static library.
    • Give it a name, in this case "EchoExtension" and put it in a folder.
    • I then delete the file EchoExtension.h as all the samples I've seen so far do not use.
    • I then add 'FlashRuntimeExtension.h' to the project of the AIR3.0 sdk frameworks folder on my PC
    • I remove everything in my folder ".m", and then, next to several different examples and tutorials, type the following code:

    //

    EchoExtension.m

    EchoExtension

    //

    #include "FlashRuntimeExtensions.h".

    Echo FREObject (FREContext ctx, void * funcData, uint32_t argc, {FREObject argv)

    return argv [0];

    }

    //----------- Extention intializer and finalizer ----------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------ -

    A native context instance is created

    void ContextInitializer (void * extData, const uint8_t * ctxType, FREContext ctx, uint32_t * numFunctionsToTest, const FRENamedFunction * functionsToSet) {}

    Configure the number of functions in this extention

    for ease of reference, set the number of function that will use this extension.

    int FunctionCount = 1;

    set the number of function pointer reference that will use this extention.

    * numFunctionsToTest = FunctionCount;

    create an array to store all the functions that we will use.

    FRENamedFunction * func = (FRENamedFunction *) malloc (sizeof (FRENamedFunction) * FunctionCount);

    create a table for each function entry

    Func [0] .name = (const uint8_t *) "echo"; the name of the function

    Func [0] .functionData = NULL;                    the data type

    Func [0] .function = & echo;             the reference to the real function

    Save the array to a pointer.

    * functionsToSet = func;

    }

    A native context instance is deleted

    void ContextFinalizer (FREContext ctx) {}

    return;

    }

    Initialization of each extension function

    void ExtInitializer (void * extDataToSet, ctxInitializerToSet FREContextInitializer *, FREContextFinalizer * ctxFinalizerToSet) {}

    * extDataToSet = NULL;

    * ctxInitializerToSet = & ContextInitializer;

    * ctxFinalizerToSet = & ContextFinalizer;

    }

    Called when the extension is unloaded

    void ExtFinalizer (void * extData) {}

    return;

    }

    • I'll then 'product', 'building' and it creates libEchoExtension.a
    • I'm copying this .to file on my PC.

    I am now finished with this abandoned mac of God (* shudder *)
    Back on my PC, I create a folder for my test project. For all the intentions a purposes, we will call this "D:\src\EchoExtension" then I create 2 folders, one called "lib" and one called "app". Lib, it's where I'm going to create the actionscript source for my extension.

    • In my lib folder, I create a new fla in flash cs5.5, called "EchoExtension.fla".
    • I create my lib folder, the following:
      • com\extensions\EchoExtension\EchoExtension.as
      • a folder named 'Build' in which I place my libEchoExtension.a file.
    • I have in my EchoExtension.as file, place the following code:

    package com.extensions.EchoExtension

    {

    import flash.events.EventDispatcher;

    import flash.events.IEventDispatcher;

    import flash.external.ExtensionContext;

    SerializableAttribute public class EchoExtension extends EventDispatcher

    {

    protected var _extensionContext:ExtensionContext;

    /**

    * Constructor.

    */

    public void EchoExtension()

    {

    Super();

    Initialize the extension.

    _extensionContext = ExtensionContext.createExtensionContext ("com.extensions.EchoExtension", "main");

    }

    public void echo(Prompt:String):String

    {

    Return _extensionContext.call ("echo") as String;

    }

    }

    }

    • In my main fla, on the first layer of the time line, I put just the following code to make sure that did get file included when I publish the swc.

    import com.extensions.EchoExtension.EchoExtension;

    var ext:EchoExtension = new EchoExtension();

    Stop();

    • I then opened upwards from my fla publication settings, disable the swf - which I don't need, and check the swc and ensure it generates in my generation folder.  «. "/ Build/EchoExtension.swc.
    • I also updated the player Air 3.0 (which I can do because I managed integrated AIR 3.0 along side my AIR 2.6 and can build both without any problem)
    • I then publish the swc. So far so good. No problems.
    • I then made a copy of the CFC and rename it to EchoExtension.swc.zip, how I extracted the library.swf file and place it in the folder of my generation.
    • I then create extension.xml in case of generation that contains the following code:

    " < extension xmlns =" http://ns.Adobe.com/air/extension/2.5 ">

    com.extensions.EchoExtension < id > < /ID >

    < versionNumber > 1 < / versionNumber >

    <>platforms

    < platform name 'iPhone-ARMS' = >

    < applicationDeployment >

    < nativeLibrary > libEchoExtension.a < / nativeLibrary >

    < initializer > ExtInitializer < / initializer >

    < finalizer > ExtFinalizer < / finalizer >

    < / applicationDeployment >

    < / platform >

    < / platforms >

    < / extension >

    • Now, at this point, I'm a little suspicious, because I build for the iPad2... the platform is iPhone... I thought that may be a problem and at some point I have tested the same build on the iPhone4 and had the same results. I also tested using the name of the platform of the iPad-ARM and got the same results... So I don't think that's the problem, but I'm not sure.
    • Now, to make things easier, I created a batch file called "buildane.bat" in my file generation. That's what I use to create my .ane file and it contains the following command line:

    D:\SDKs\AirSDK30\bin\adt-Paquet - target ane EchoExtension.ane extension.xml - CFC EchoExtension.swc - iPhone-ARM library.swf libEchoExtension.a platform

    • I then open a command prompt and run buildane.bat and Ottoman. My donkey is created. My generation file now has the following files in it:
        • buildane.bat
        • EchoExtension.ane
        • EchoExtension.swc
        • EchoExtension.swc.zip
        • extension. XML
        • libEchoExtension.a
        • Library.swf

    Now that I have my swc, donkey and it's time to create my sample application that will be used to test my new extension.

    • I go back to my D:\src\EchoExtension folder and go to the folder app ealier, I created.
    • I then create a new flash project called EchoExtensionTester.fla
    • I open the action script settings, paths to library and add the CFC I created in my D:\src\EchoExtension\lib\build file to my project.
    • On my stage, I create a field called text txtInput, a field of dynamic text named txtEcho, and a couple of buttons called btnClear, btnRuntime and btnEcho
    • I open the first layer of the timeline, and place the following code:

    imports of base.

    import flash.desktop.NativeApplication;

    import flash.events.MouseEvent;

    import flash.text.TextField;

    import the extension of our swc.

    import com.extensions.EchoExtension.EchoExtension;

    the value of our input text to the need the softkeyboard field

    txtInput.needsSoftKeyboard = true;

    Add event handlers to our buttons.

    btnEcho.addEventListener (MouseEvent.CLICK, btnEcho_Click);

    btnClear.addEventListener (MouseEvent.CLICK, btnClear_Click);

    btnRunTime.addEventListener (MouseEvent.CLICK, btnRunTime_Click);

    create our variable expansion.

    var ext:EchoExtension;

    Try

    {

    initialize our extension of echo.

    Ext = new EchoExtension();

    } catch (error) {}

    txtEcho.text = 'Error when trying to create new EchoExtension:\n\n' + e;

    }

    Stop();

    Delete the text echo field

    function btnClear_Click(e:MouseEvent):void

    {

    txtEcho.text = "";

    }

    just to test, put the latest version of the air runtime in our text field, so we can make sure we run air 3.0

    function btnRunTime_Click(e:MouseEvent):void

    {

    txtEcho.text += "\nRuntime version =" + NativeApplication.nativeApplication.runtimeVersion; ".

    }

    call the extension, passing all that is in the text input field and get back and place it in our text echo field

    function btnEcho_Click(e:MouseEvent):void

    {

    txtEcho.text += "\n";

    Try

    {

    txtEcho.text += ext.echo (txtInput.text);

    } catch (error) {}

    txtEcho.text += "\nError call ext.echo:"+ e;»

    }

    }

    • I save the project, Open Air for the parameters of the iOS, then perform the following settings: (Yes, I know... I'll have to use adt to perform the build, but I need to first create the swf file)
      • File: EchoExtensionTester.ipa
      • AppName: EchoExtensionTester
      • Version 1.0
      • Landscape
      • Full screen on
      • Auto orientation is disabled
      • GPU rendering
      • device: iPad and iPhone
      • RES: high
      • Deployment: I use my certificate and profile provisionging that I use for my main project (that works) and defined for the test of the device.
    • I close the window and save again... but before I publish, I opened newly created "EchoExtensionTester - app.xml" which is located in my app folder.
    • I add the extensions <>< extensionID > com.extensions.EchoExtension < / extensionID > < / extensions > to the XML in the file so now it looks like this:

    <? XML version = "1.0" encoding = "UTF-8" standalone = 'no '? >

    " < application xmlns =" http://ns.Adobe.com/air/application/3.0 ">

    <>Extensions

    < extensionID > com.extensions.EchoExtension < / extensionID >

    < / extensions >

    < id > EchoExtensionTester < /ID >

    < versionNumber > 1.0 < / versionNumber >

    < file_name > EchoExtensionTester < / name of the file >

    < description / >

    <!-to locate the description, use the following format for the description element. < description > < text XML: lang = "fr" > App English description goes here < / text > < text XML: lang = "fr" > French App description goes here < / text > < XML text: lang = "ja" > Japanese App description goes here < / text > < / description >->

    < name > EchoExtensionTester < / name >

    <!-to locate the name, use the following format for the name element. < name > < text XML: lang = "fr" > insert here the name App English < / text > < text XML: lang = "fr" > insert here the French App name < / text > < XML text: lang = "ja" > insert here the Japanese App name < / text > < / name >->

    < copyright / >

    < initialWindow >

    < content > EchoExtensionTester.swf < / content >

    standard < systemChrome > < / systemChrome >

    < clear > false < / transparent >

    < visible > true < / visible >

    true < fullscreen > < / full screen >

    landscape of < aspectRatio > < / aspectRatio >

    GPU < renderMode > < / renderMode >

    < maximizable > true < / maximizable >

    < minimizable > true < / minimizable >

    < resizable > true < / resizable >

    < autoOrients > false < / autoOrients >

    < / initialWindow >

    < icon / >

    < customUpdateUI > false < / customUpdateUI >

    < allowBrowserInvocation > false < / allowBrowserInvocation >

    < iPhone >

    < InfoAdditions >

    <! [CDATA [< key > UIDeviceFamily < / key > < table > < String > 1 < / string > < string > 2 < / string > < / array >]] >

    < / InfoAdditions >

    < requestedDisplayResolution > top < / requestedDisplayResolution >

    < / iPhone >

    < / application >

    • I save the changes to the xml file and return to Flash. I then publish.
    • The swf file is created as it should be, but then I get the error message:

    Error creating files.

    A native implementation extension 'com.extensions.EchoExtension' required by the application is not found for the target platform.

    • Now, while it is a pain in the rear, I again, this was going to happen because in my reading tutorials and samples, they have all said that you use adt to build the ipa... but that is fine... all I wanted anyway, was the swf, which I now have in my app folder.
    • I close flash because I no longer need and I create a new batch file: (Note: I have change the name of the cert, profile and password for this post)

    CLS

    "D:\SDKs\AirSDK30\bin\adt" - package - target the ipa-ad-hoc - stores pkcs12 - keystore "D:\src\mycert.p12" - storepass MYPASSWORD-putting into service-profile "D:\src\myprovfile.mobileprovision" "EchoExtensionTester.ipa" "EchoExtensionTester - app.xml" "EchoExtensionTester.swf" - extdir... / lib/Build

    Set dummy = p

    ECHO done

    • I then open a command window in my app folder and run build.bat.
    • I wait about 2 minutes...
    • ...
    • ...
    • YAY! My ipa file was created without error reported so far... Time to copy this bad boy to the iPad and see what happens.
    • I opened iTunes, drag "EchoExtensionTester.ipa" to the applications, then synchronize my device...
    • ...
    • YAY! iTunes installed ipa on the device... and there is a white icon bright and shiney for Echo Extension tester...
    • I open the app... and...
    • nothing.
    • I'm waiting for
    • still nothing.
    • I go to the bathroom.
    • I'll be back... still nothing... just a black screen.
    • I press the home button on the iPad, the app minimized, I restore it... nothing... black screen.

    management of human resources. Time to do some trial and error to see if I can figure out what the distribution.

    • As a test, I opened my fla and I comment out the following lines:
      • Ext = new EchoExtension();
      • txtEcho.text += ext.echo (txtInput.text);
    • I then rebuild the swf... get the same error (don't care)... I then rebuild the ipa using the batch file... and reinstall it on the device when it is made.
    • Exactly the same thing...
    • I opened the xml file... and remove the < extensionID > com.extensions.EchoExtension < / extensionID > line, save and re - run the batch file again... Wait for the ipa ends, then run it on the device.
    • I start the program on the iPad and it starts perfectly... with the exception of the commented line of code actually create and call the extension, everything works as it should. The runtime on the device reports as 3.0.0.4080
    • A test, I opened the .fla save and uncomment the 2 lines, I commented out above... keep the xml file extensionID, I re - publish the ipa... of course, this time, it actually creates the flash API, because the id of the extension is not in the xml file.
    • I put the file API with the extension in place on the ipad code... The fire and make the txtInput text and press the button of the echo. I get the following error:
      • Error calling ext.echo: TypeError: Error #1009
    • I suspect it's because I failed to include the extension in the descriptor... but when I build it with the extensionid in the xml file, I just get a black screen. I'm 99% sure that the context of the extension in the ext object is null (because that's what happens when I run Flash debug without extension lines in the xml)

    And here I am stuck.

    Can someone tell me what I am doing wrong or what I forgot to do?

    Thank you.

    Hi can check you if the CFC of the native extension is linked as external?

    Next image can help locate and change the link type of CFC.

    The issue that many people face here (i.e. extension works fast/interpreter mode and only when they are packed in standard mode) occurs only when the SWC of the NE is not linked externally.

    I hope this helps.

    Kind regards

    Mathyas blabla

    IOS of the AIR

  • My entire song will not play, just section A or B. Any ideas what I am doing wrong?

    MY entire song will not play, just section A or B. No idea what I am doing wrong?

    The first thing to check is if you have "all sections" selected. Push it + top button on the right, which should show you the section menu. Above that, it should say "all sections". Make sure that who is selected. I know not obvious, but sometimes it's the simple answer that works... Don't know what you need to do, if it is not there.

Maybe you are looking for