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.

Tags: ColdFusion

Similar Questions

  • what I'm doing wrong here?

    first class... This class can extend UiApplication he'll simply call the class UiMain. This is my requirement

    class TestUi {}
       
    Public Shared Sub main (String [] args) {}
    Au TestUit = new TestUi();
            
    }
       
    public TestUi() {}
       
    Au UiMain = new UMain();
    AU. Display();
    }
    }

    second class

    SerializableAttribute public class UiMain extends UiApplication {}

    public UiMain() {}
            
    }

    public int display() {}

    I have to start the event thread in this class not only the calling class
    UiMain.getUiApplication () .enterEventDispatcher ();

    UiAlert.getUiApplicatoin () .invokeLater (new runnable() {}

    public void run() {}

    pushScreen (new UiAlertScreen()); has Christine my class form instance is passed

    )

    }

    });

    } //end of class

    When I try to run this application, it locks the screen... and nothing happens...

    OK, there are a lot of 'bad '.
    First, you must use the "Insert Code" tag to your codes in a readable way.
    Then learn the basics.
    Your test should be like:

    import net.rim.device.api.ui.UiApplication;import net.rim.device.api.ui.container.MainScreen;
    
    class UiTest {
    
        public static void main(String []args) {        UiTest ua = new UiTest();    }
    
        UiTest() {         UiMain ua = new UiMain();         ua.display();    }
    
    }; //UiTest
    
    class UiMain extends UiApplication {
    
        public UiMain() {        pushScreen(new UiAlertScreen());    }
    
        public void display() {        this.enterEventDispatcher();    }
    
    }; // UiMain
    
    class UiAlertScreen extends MainScreen {
    
        UiAlertScreen() {    }
    
    };// MainScreen
    
  • Can someone tell me what I'm doing wrong here

    CREATE OR REPLACE PROCEDURE SP_DELETE_EMPLOYEES
    (p_wge_rpt_id IN WGE_RPT_EMPL1. WGE_RPT_ID % TYPE)
    AS

    declare
    l_return_values sys.odcivarchar2list default sys.odcivarchar2list ();

    BEGIN
    delete wge_rpt_empl_audit1
    where del_flg = '1' and wge_rpt_id = p_wge_rpt_id
    return wge_rpt_id | » -'|| empl_wge_id
    bulk collect into l_return_values;

    delete wge_rpt_empl1
    where (wge_rpt_id, empl_wge_id) in
    (
    Select
    TO_NUMBER (regexp_substr (column_value, "[^-] +' 1, 1"));
    TO_NUMBER (regexp_substr (column_value, "[^-] +' 1, 2"))
    table (cast (l_return_values as sys.odcivarchar2list))
    );
    END SP_DELETE_EMPLOYEES;

    Published by: oraclebeginner1231 on July 30, 2010 08:13

    you gave STATED in the procedure which is not necessary:

    Try this:

    CREATE OR REPLACE PROCEDURE SP_DELETE_EMPLOYEES
    (p_wge_rpt_id IN WGE_RPT_EMPL1.WGE_RPT_ID%TYPE)
    AS
    
    l_return_values sys.odcivarchar2list default sys.odcivarchar2list();
    
    BEGIN
    delete wge_rpt_empl_audit1
    where del_flg = '1' and wge_rpt_id=p_wge_rpt_id
    returning wge_rpt_id ||'-'||empl_wge_id
    bulk collect into l_return_values;
    
    delete wge_rpt_empl1
    where (wge_rpt_id, empl_wge_id) in
    (
    select
    to_number(regexp_substr(column_value, '[^-]+', 1, 1)),
    to_number(regexp_substr(column_value, '[^-]+', 1, 2))
    from table(cast(l_return_values as sys.odcivarchar2list))
    );
    END SP_DELETE_EMPLOYEES;
    
  • . 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");

    }

  • any simple procedural error off... What am I doing wrong?

    I created a very simple procedure like below to collect statistics of schema for 3 schema diff...
    its getting created but with compilation errors...
    CREATE OR REPLACE PROCEDURE SCOTT.ANALYZE
    AS
    BEGIN
    execute immediate dbms_stats.gather_schema_stats(ownname=>'ABC_OWNER', cascade=> TRUE, estimate_percent=> NULL);
    execute immediate dbms_stats.gather_schema_stats(ownname=>'QWE_OWNER', cascade=> TRUE, estimate_percent=> NULL);
    execute immediate dbms_stats.gather_schema_stats(ownname=>'ZXC_OWNER', cascade=> TRUE, estimate_percent=> NULL);
    END;
    /
    ATTENTION: updated, but with compilation errors


    AND WHEN I DEBUG THIS PROCDEU I GET THE INFORMATION BELOW... WHAT AM I DOING WRONG HERE?



    SCOTT OF THE PROCEDURE. ANALYZE
    Online: 4
    PLS-00306: wrong number or types of arguments in the call to 'GATHER_SCHEMA_STATS '.

    You may not execute immediate.

    CREATE OR REPLACE PROCEDURE SCOTT.ANALYZE
    AS
    BEGIN
    dbms_stats.gather_schema_stats(ownname=>'ABC_OWNER', cascade=> TRUE, estimate_percent=> NULL);
    dbms_stats.gather_schema_stats(ownname=>'QWE_OWNER', cascade=> TRUE, estimate_percent=> NULL);
    dbms_stats.gather_schema_stats(ownname=>'ZXC_OWNER', cascade=> TRUE, estimate_percent=> NULL);
    END;
    / 
    
  • I'm reloading windows 2.6 filmmaker. But it will not download files. What I am doing wrong?

    I'm reloading windows 2.6 filmmaker. But it will not download files. What I am doing wrong?

    You can download it here. version 2.6 RELOADED
    http://jumbofiles.com/ytv6q80uvmd8
    It works on all Versions of Windows.
    If for any reason, you want to another version - I also them below.
    http://jumbofiles.com/user/uzi9mmauto/47861/Windows%20Movie%20Maker%20Editions

    But I'd go with RELOADED cause there HUNDREDS of Transitions and effects, etc.
    Theres a video on it too.
    http://www.YouTube.com/watch?v=Q4km3SB1XmQ

    Its what you want questions - I hope that I helped :-)

  • 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?

  • 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?

  • 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

  • category of recordset to filter the slot category does not, what am I doing wrong

    I've done this lots of times, but must have made a mistake, because I can't make it work

    I have a list of category show all categories

    ymysql_select_db ($database_lotties, $lotties);

    $query_rsProductData = "SELECT * FROM lottieCat ORDER BY lottieCat.CatName";

    $rsProductData = mysql_query ($query_rsProductData, $lotties) or die (mysql_error ());

    $row_rsProductData = mysql_fetch_assoc ($rsProductData);

    $totalRows_rsProductData = mysql_num_rows ($rsProductData);

    ? >

    <? PHP {? >}

    < a href = "subCat - list.php?" subCat = <? PHP echo $row_rsProductData ['subCatID'];? > "> <?" PHP echo $row_rsProductData ["productGroupGUID'];? > < br / >

    < /a >

    <? PHP} while ($row_rsProductData = mysql_fetch_assoc ($rsProductData));? >

    <? PHP

    mysql_free_result ($rsProductData);

    ? >

    but the link I want to send the page, but it does not work to the subcategory. Here's the sql code of the category sup page

    $varCat_rsProductData = '0 '.

    If (isset($_GET["subCat"])) {}

    $varCat_rsProductData = $_GET ['subCat'];

    }

    @mysql_select_db ($database_lotties, $lotties);

    $query_rsProductData = sprintf ("" SELECT * FROM LOTTIE_subCats, lottieCat WHERE lottieCat.CatID = LOTTIE_subCats.CatID AND lottieCat.CatID = %s ", GetSQLValueString ($varCat_rsProductData,"int")");

    $query_limit_rsProductData = sprintf ("%s LIMIT %d, %d", $query_rsProductData, $startRow_rsProductData, $maxRows_rsProductData);

    $rsProductData = mysql_query ($query_limit_rsProductData, $lotties) or die (mysql_error ());

    $row_rsProductData = mysql_fetch_assoc ($rsProductData);

    joins in the table are

    table = lottieCat

    CatID

    CatName

    table = LOTTIE_subCats

    subCatID

    CatID

    then the product is

    table = LOTTIE_products

    subCatID

    what I am doing wrong

    OK, so if you want to produce a list of subcategories, you do not need to join to the table of categories.

    $query_rsProductData = "SELECT * LOTTIE_subCats WHERE LOTTIE_subCats.CatID = %s;

  • 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

  • ExternalInterface Demo - what am I doing wrong? (Flash CS5/AS3/FP10)

    This is exactly what I need - and works online.

    http://www.scotflash.co.uk/blog/wp-content/uploads/2010/02/flash_js/

    The code download is here - but this does not work for me once I put in Flash CS5 and publish using the default settings (AS3/Flash Player 10):

    http://www.scotflash.co.uk/blog/?tag=ExternalInterface (bottom of page)

    Tested my locally published file (which raises security galore errors) and out on a server (where it is not).

    What I am doing wrong?  I don't get errors in Flash.  This download works for anyone?

    have you defined javascript functions?

  • What I am doing wrong? FLV not found on the server!

    I really need help please!

    Here is a step by step of what I've done:

    Created a folder on my desktop. . Mov copied to this folder. Created a new file in flash (Actionscript 3.0, CS3). Saved in the same folder on the desktop. Import video to import .mov file (progressive download, etc.). Fine imported video. I tested the movie and everything seems good. So, I have published. I checked the previews to publish and all look great!

    Next, I took my my dekstop folder and all it's content (.mov, .fla, .flv, .swf, skin.swf, .html and .js) and uploaded to my ftp. When I go on the website that there is no evidence and it says there was an error opening the page. Then I looked at the activity and it is said that the .flv is not found. But I checked once AGAIN and the .flv is in the same folder as the rest of my files.

    Am I missing a step? I am very new to Flash and I can't understand what I'm doing wrong. Can anyone help? Should I post this in another forum?

    Thank you!

    Check with your hosting provider to make sure that the MIME type is set to display FLV format.

    Chris Georgenes
    Adobe Community Expert
    www.Mudbubble.com
    www.keyframer.com
    www.howtocheatinflash.com

    Kirsten Vandenhouten wrote:
    > I really need help please!
    >
    > Here is a step by step of what I've done:
    >
    > Created a folder on my desktop. . Mov copied to this folder. Creates a new
    > flash (Actionscript 3.0, CS3) file. Saved in the same folder on the desktop. Used
    > Import video to import the .mov (progressive download, etc.). Imported video
    > fine. I tested the movie and everything seems good. So, I have published. I checked
    > post previews and all look great!
    >
    > For the next, I took my folder my dekstop and all it's content (.mov, .fla,
    (> .flv, .swf, skin.swf, .html and .js) and uploaded to my ftp. When I go to the
    > site nothing appears and it says there was an error opening the page. Then
    > I looked at the activity and it is said that the .flv is not found. But I checked
    > AGAIN and the .flv is in the same folder as the rest of my files.
    >
    > Am I missing a step? I am very new to Flash and I can't understand what I'm
    > hurt. Can anyone help? Should I post this in another forum?
    >
    > Thank you!
    >

  • What I am doing wrong?

    I have an iMac Intel running 10.11.6 and just replaced my old iPod Touch with a new. I was able to successfully transfer a number of albums on my iPod Touch but found that most of the songs appear in gray and can be played with a wi - fi connection? What I am doing wrong? How can I access all of my music on my iPod Touch, regardless of whether or not it is connected to the wi - fi?

    In addition, to start over (assuming there is a way to access all my music without a Wi - fi), can I simply select, delete and start over?

    Again like new:

    Settings > general > reset > erase content and settings

    You must synchronize the albums/songs on your iPod touch to play without an Internet connection.

    Note: If you turn on iCloud music library, you can not use iTunes to sync music on iPod touch.

  • I can't update Flash player. What I am doing wrong?

    I can't update Flash player. What I am doing wrong?

    I currently have version 21, 22 version is the latest.  I get.

    "Adobe Flash Player could not be installed."

    I did the troubleshooting steps below. Everything is good, as I can tell.

    https://helpx.Adobe.com/Flash-Player/KB/enabling-Flash-Player-Firefox.html

    My Shockwave Flash is set, 'always on '.

    I ran the Adobe flash installer which seems to be successful. Then, I tried a new facility, still no joy.  (He did remove Flash Player version 21, now I have nothing.)

    Suggestions appreciated

    Firefox could block Flash because of security concerns.

    Because of security problems in older versions, Apple has

    updated the web plugin blocking mechanism to disable all

    earlier versions of Flash Player, 22.0.0.192 and 18.0.0.360.

    Information on web blocked plug-ins will be posted to:

    http://support.Apple.com/en-us/HT202681

    The question you should ask is why you have Flash installed. You don't need Flash. If you have not installed Flash, videos will play in HTML5. If the video requires Flash, you can use Google Chrome to play.

    From Sierra, Safari will be is more said websites common plug-ins are installed. It does this by not including not information on Flash, Java, Silverlight and QuickTime

Maybe you are looking for