A file in a source path must have the same package structure

Hello

I'm creating an application. What I did to cause this error, should separate my AS3 code to another .as file in the same folder. Since then, I get this error. I tried a couple of different things as creating a new folder under the same structure with the same name as the package I said. However, no effect, it's a gave the same error.

I searched for information on this error, all suggest the same thing... I did. Probably I did not receive what they say...

However, can someone explain where I'm wrong about this?

Thanks and greetings

H.R.

My guess is you put in the right place, and the 'heap of various errors' that you refer to are compilation errors in your class. In its current location, Flex doesn't compile your class because he is in the wrong directory, so you will not see these errors. Put it back where it should be and if you get more errors that you don't understand, search with google, read actionscript docs or ask another question on the forum.

Tags: Flex

Similar Questions

  • A file in a source path must have the same package structure ", as the definition's package?

    How I can fix this bug with my class, I get this message:

    "A file in a source path must have the same package structure", as the definition, "photoviewer" package. "

    It's my source WindowedApplication:

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:WindowedApplication xmlns:mx = ' http://www.adobe.com/2006/mxml '
    "" xmlns = "*".
    paddingBottom = paddingTop = "0" "0".
    paddingLeft paddingRight '0' = '0 = '.
    Layout = "vertical".
    pageTitle = "Photo Viewer"
    creationComplete = "init ()" viewSourceURL = "srcview/index.html" > "

    < mx:Script >
    <! [CDATA]

    Import mx.collections.ArrayCollection;
    Mx.rpc.events import. *;

    PhotoViewer Import. Gallery;
    PhotoViewer Import. PhotoService;


    [Bindable]
    private var: Gallery;

    [Bindable]
    private var service: PhotoService.

    private function init (): void
    {
    service = new PhotoService("data/galleries.xml");
    }
    []] >
    < / mx:Script >

    This is my Gallery class source:

    the photoviewer package
    {
    Import mx.collections.ICollectionView;
    Import mx.collections.ArrayCollection;
    Import mx.collections.IViewCursor;

    [Bindable]
    public class Gallery
    {
    public var name: String;
    public var description: String;
    public var photos: ArrayCollection collection;
    public var selected: int;

    private var photo: Photo;

    public void Gallery (gallery:Object = null)
    {
    photos = new ArrayCollection();
    If (Gallery! = null)
    {
    Fill (Gallery);
    }
    }

    public void fill(gallery:Object):void
    {
    myIdName = gallery.id;
    This.Description = gallery.description;
    This.Selected = 0;

    for (var i: int = 0; i < gallery.photo.length; i ++)
    {
    Photo = new Photo (gallery.photo );
    photos.addItem (photo);
    }
    }
    }
    }

    Someone knows how to fix this error?
    "A file in a source path must have the same package structure", as the definition, 'photoviewer' package. '?

    Kind regards
    EvsPeart

    Yes. If you want to file package photoviewer Gallery you create directory photoviewer in src and move the file there.

  • ORA-01790 Expression must have the same data type

    select  'sal' as A, sal as B, sal as C, sal as D
    from
    (Select sum(sal) sal from emp)
    union all
    select
      'comm', comm, comm, comm
    from
    (Select sum(comm) comm from emp)
    union all
    select rpad('-',10,'-') ,rpad('-',10,'-'),rpad('-',10,'-'),rpad('-',10,'-') from emp;
    Get the following error when you run the above query. I know it's because of the rpad('-',10,'-') what is the best way to achieve the expected results

    I would like to have the result with underscore. What is the best way to achieve this.

    Expected results:
    I am developing report.
    I need to have the following oupput.
    How can I put underscore after the recordings.
     A              B        C             D        
    sal         29025       29025     29025
    comm     2200    2200     2200
    --------------------------------------------------
    SQL> select  'sal' as A, sal as B, sal as C, sal as D
      2  from
      3  (Select sum(sal) sal from emp)
      4  union all
      5  select
      6    'comm', comm, comm, comm
      7  from
      8  (Select sum(comm) comm from emp)
      9  union all
     10  select rpad('-',10,'-') ,rpad('-',10,'-'),rpad('-',10,'-'),rpad('-',10,'-') from emp;
      'comm', comm, comm, comm
              *
    ERROR at line 6:
    ORA-01790: expression must have same datatype as corresponding expression
    
    SQL> select  'sal' as A, to_char(sal) as B, to_char(sal) as C, to_char(sal) as D
      2  from
      3  (Select sum(sal) sal from emp)
      4  union all
      5  select
      6    'comm', to_char(comm), to_char(comm), to_char(comm)
      7  from
      8  (Select sum(comm) comm from emp)
      9  union all
     10  select rpad('-',10,'-') ,rpad('-',10,'-'),rpad('-',10,'-'),rpad('-',10,'-') from emp;
    
    A          B                                        C                                        D
    ---------- ---------------------------------------- ---------------------------------------- ------------------
    sal        29025                                    29025                                    29025
    comm       2200                                     2200                                     2200
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    
    A          B                                        C                                        D
    ---------- ---------------------------------------- ---------------------------------------- ------------------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    
    16 rows selected.
    
    SQL> 
    

    SY.

  • ORA-01790 expression must have the same type of data, matching expression

    SELECT *  from award_test
            UNPIVOT(VAL for operator in(                                                                                                                                                                                                        
    AWARD_NAME,                                                                                                                                                                                                               
    TOTAL_PROCEEDS,                                                                                                                                                                                                              
    EARNING_PROCS ,                                                                                                                                                                                                               
    TOT_PROCS_EARNINGS ,                                                                                                                                                                                                            
    GROSS_PROCS    ,                                                                                                                                                                                                                
    PROC_REF_DEF_ESCR ,                                                                                                                                                                                                         
    OTH_UNSP_PROCS ,                                                                                                                                                                                                               
    ISSUANCE_COST ,                                                                                                                                                                                                             
    WORK_CAP_EXP ))
            PIVOT(max(VAL) for award_number in  ('XIAAE' as "XIAAE",'XIBNG' as "'XIBNG"))
    Expected results
    operator   XIAAE     XIBNG     
    AWARD_NAME ab          cd                                                                                                                                                                                    
    TOTAL_PROCEEDS   0     1                                                                                                                                                                                              
    EARNING_PROCS                                                                                                                                                                                                            
    TOT_PROCS_EARNINGS                                                                                                                                                                                                          
    GROSS_PROCS                                                                                                                                                                                                                  
    PROC_REF_DEF_ESCR                                                                                                                                                                                                         
    OTH_UNSP_PROCS                                                                                                                                                                                                               
    ISSUANCE_COST                                                                                                                                                                                                            
    WORK_CAP_EXP
    the data stored will be populated as columns

    Hello

    Is this the same probllem like
    Re: ORA-56901: no constant expression is not allowed to pivot. UNPIVOT values
    ?

    You do not post again and again the same problem. One of these threads mark as "Answered" right away; and only continue in the other. In this way, you will have only to look in one place to find answers.
    I suggest marking it as 'Response', given that the other has a few examples of data.

  • Windows 7-How to disable the Preview on my desktop icon, I have many files on my desktop, it's easier when all of the PDF files have the same icon instead of a preview icon.

    How can I disable the Preview on my desktop icon, I have many files on my desktop, it's easier when all of the PDF files have the same icon instead of a preview icon. so, I immediately see who is PDF and DWG. at the moment they all look different because the icon shows a preview of the contents of the file.

    Hi Khody,

     

    To change your windows 7 application icon you can use following the procedure-
    a. R
    ight click on the desktop icon and then click Properties.
    b. now
    Select the shortcut tab and see button below to change the icon. Click the button change icon now all the icons.
    c. you can
    choose a of the icons that you want for the shortcut.

     

    I hope this helps.

  • How to create a disc of forgotten password if you must have the current password?

    It makes no sense at all.  How to create a disc of forgotten password if you must have the current password?  It works only if you have created this from the beginning? Thank you

    Original title: Assistant password

    "How to enable or disable the built-in high administrator in Windows 7 account '

    http://www.SevenForums.com/tutorials/507-built-administrator-account-enable-disable.html

    'Activate the administrator account (hidden) on Windows 7, 8, or Vistone '

    http://www.howtogeek.com/HOWTO/Windows-Vista/enable-the-hidden-administrator-account-on-Windows-Vista/

    See you soon.

  • Partition member in source and target must be the same

    Hello gurus, I have a cube with partitions and each partition is to have about 10 dimensions.

    A dimension, I became a member and wrote a rule for this member in the partition of the source, I have to take the same Member in the score target to write the rule.

    No, you don't have to have the same set of members on both sides.

    If you have...

    A, B, C, D

    .. .in the source, and...

    A, B, C

    .. .in the target, you have two options.

    First option, live with the warnings of validation "incompatibility of cell count" and do nothing to do.  Then no data will appear in the target for had 'and had data' will be not only be pushed in any of the partition.

    Second option, card would be "one of the 'A', 'B' and 'C'."

  • two elements that have the same source

    Hi guys,.

    I am trying to use the display on a Google Map plugin location. As I had this plugin requires two elements that have the same source:

    Article 1 - A text to insert the value (address) in the database. The source of this question would be 'MAP' column.
    2 - Google Map plugin ELEMENT to visualize on the map. The source of this issue should also be "Map" the column that is used to read the address.

    But the problem, as you saw, we can not create a new record if we have two items with the same source. How can I get around this?

    Here is the link to the plugin:

    http://Apex.Oracle.com/pls/Apex/f?p=plugins:LOCATION_MAP:2943553726537511

    Kind regards
    Fateh

    Published by: Fateh July 21, 2011 02:52

    Hi Fateh,

    Tried the plugin you mentioned! Had a preview of your problem.
    >
    I am trying to use the display on a Google Map plugin location. As I had this plugin requires two elements that have the same source
    >
    As your form seems to be running automatic process line processing DML that will obviously give an error if you have two items
    with the same source i.e. 'MAP' that is your database column.
    >
    Article 1 - A text to insert the value (address) in the database. The source of this question would be 'MAP' column.
    >
    I think that this point is already with you as you may have created form based on a Table or form and report based on a Table.
    Leave the source of this article because it's IE card - the database column.
    >
    2 - Google Map plugin ELEMENT to visualize on the map.
    >
    Change the source of this article as:
    Source type: static assignment (value corresponds to the source attribute)
    Source of value or expression:

    &P1_ADDRESS.
    

    Where P1_ADDRESS is the element:
    >
    Article 1 - A text to insert the value (address) in the database. The source of this question would be 'MAP' column.
    >

    I hope that helps!
    Kind regards
    Kiran

  • I use a USB key to solid state. On my Win7 PC, the drive is e: on my XP PC, the drive h: I need the drive must be the same.

    How I change one of them?

    I need them to be of the same kind when I run Outlook on two computers (the .pst file is on the USB key), the path to the Outlook folders must be the same or rules Outlook fails when you try to copy a message from the Inbox to another folder in Outlook e-mail.

    You probably have one of these drives to multi format card on your XP machine who caught a lot of drive letters.  If you don't mind not reconfigure your Outlook rules one last time, I suggest assignment drive letter Z (or something else, towards the end of the alphabet) to your external drive.

    With the drive connected to one of the computers, open disk management:

    • Right click on my computer > manage > disk management
    • Right-click on the drive letter in the upper pane corresponding to the external drive and select "change drive letter and paths".
    • Click the button change
    • Select the new letter drive and OK your way out

    Repeat on the other machine

  • RE: Installed detachment "access denied." I have the same problem and none of the above worked. The property is empty, but demand will not accept me.

    RE: "access denied" following the installation of Firefox question. I have the same problem. Details below: I tried opening in Mode safe that has not worked. I have administrative access. When I click on the general tab in properties, I get a message that there is no such thing as "firefox.exe". This file, or any other type 'install' file appears in the directory Mozilla Firefox with the exception of 'uninstall '. I downloaded and tried to install seven times from six different sources, including Mozilla, all with the same results. I also tried a number of solutions on the web for this error without great success. I tried, first of all, to make an upgrade, then remove the old version of Firefox and have been 'install' since then. Avast, Malwarebytes and Threatfire found no malware.

    I've never had a similar problem with Firefox before and I used it for years. Anyone has any ideas that I have not already tried? I'm tired of using Internet Explorer! RE: Troubleshooting below - information Windown will not open the downloaded file.

    arwade said

    I downloaded Firefox on seven different sites

    Please download the full installer ONLY of Mozilla.org.
    Download Firefox full installation for all systems and languages {web link}

  • HBA/LUN names - must be the same on hosts?

    Hello

    I have a question about LUN and CF. Hba name must be the same for the hosts to access the same LUNS? For a long time that I touched CF I'm afraid!

    Bascially, if lunA hostA access via hba1, its path name would be something like hba1:0:0:1 AND if hostB accesses lunA via hba2, it would be hba2:0:0:1. Is it a problem that the name is inconsistent? I thought I read somewhere that (conical?) names must be the same?

    Man I like NFS so much more than CF!

    Thanks a lot if someone could clariffy CF/LUN assignment of names for me

    Rich.

    What you're watching is good old CTD/CTL (controller, target, device/LUN) name.  It is just a reference to how you got where you are going.  Each device must be unique to a controller, and each LUN can be used once on a controller.  ESX tops out at 255 LUNS (see maximum configuration for more details on this).

    So you don't match at all on hosts.  However, it is advisable for your mental health to ensure that each data store that is presented to a host in a HA cluster is presented to guests.  This prevents the migration of VM problems.

    It also makes it easier to troubleshoot (esp. communicating with a group of dedicated storage) if each of the LUNS presented Gets the same number on each host.

    Virtualization of happy!

    JP

    Please consider awarding points for correct or helpful answers

  • I teach online and all my classes have the same user name and password. Now that I clicked "remember me next time", I can connect only in one class. How to unlock my password. Carol in English

    I teach online and all my classes have the same user name and password. Now that I clicked "remember me next time", I can connect only in ONE class. How to unlock my login and my password, so that I can use it for all classes. Carol in English

    "Remember Me" for the site connections automatically when you return to the Web site is done with a Cookie the site in Firefox.

    Try to clear your Cookies for this Web site.

    Tools > Options-> life privacy - Cookies = the button show Cookies.

    You must use the custom settings for history at the top of this tab to see the View the Cookies button.

    Enter the domain name in the top search bar and all Cookies for this URL will be displayed. Unless you can figure out which is Cookie to "remember me", you will need to delete them all.

    Hold the {Ctrl} key while you click each Cookie in the small window. When this list is all highlighted, click the Cookie delete button at the bottom left.
    When you are finished click Close.

  • Is it possible to have the same display of the content as one of the batteries (Dock) to any folder (found in the Dock)?

    Hello

    Is it possible to have the same display of the content as one of the batteries (Dock) to any folder (found in the Dock)?

    I think that the question is quite clear

    I mean it is coded somehow for chimneys, is it possible to apply it to a different folder?

    I like the idea of click once, choose the file only I want without having to open/close, he

    Thank you

    You can only if you drag any folder to the right of the dock.

  • your ip address of the router and the printer's address must be the same, so it can print from the computer

    IM setting upward a new router and wants to find the printer but the printer and the router are different VPI address Will this work

    Are they similar addresses, for example 192.168.1.1 for the router and 192.168.1.37 for the printer, it should work file.  If they are more than just a bit different - say for example instead of 192.168.1.37 the printer address is 192.168.0.100 or 169.54.45.21 - then is not likely.  In most home networks, the first three bytes of the IP address must be the same with the fourth byte is different for each computer or device connected to the network.

  • I have the same problem. whenever I start windows it tells me it is install and configure updates, after 20 minutes he finally - but next time I start exactly the same thing happens - that is every day and im tired of it.

    I have the same problem. whenever I boot windows vista it tells me it is install and configure updates, after 20 minutes he finally - but next time I start exactly the same thing happens - that is every day and im tired of it.

    Hi MartinWithWindowsIssues,

    Welcome to the Microsoft Vista answers Forum!

    I have some steps that may help you.

    Step 1

    Try resetting the component of windows update.

    To do this, click resolve this present in the link below. Click run in the file download dialog box and follow the steps described in the fix it Wizard.

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058

    Step 2

    Perform a scan of the file system [SFC] checker on the computer that will replace missing or corrupt files.

    To do this, follow the steps below:

    1. click on the Start button

    2. on the Start Menu, click all programs followed by accessories

    3. in the menu accessories, right-click on command line option

    4. in the drop-down menu that appears, click the "Run as Administrator" option

    5. If you have the User Account Control (UAC) enabled, you will be asked permission before the opening of the command line. You simply press the button continue if you are the administrator or insert password etc.

    6. in the command prompt window, type: sfc/scannow then press enter

    7. a message is displayed to indicate that "the analysis of the system will start.

    8. be patient because the analysis may take some time

    9. If all the files need replace SFC will replace them. You may be asked to insert your Vista DVD for this process to continue

    10. If all goes although you should, after the analysis, see the following message "Windows resource protection not found any breach of integrity.

    11. once the scan is finished, close the command prompt window, restart the computer and check.

    For more information, see the link below:

    How to repair the operating system and how to restore the configuration of the operating system to an earlier point in time in Windows Vista

    http://support.Microsoft.com/kb/936212

    Hope the helps of information. Please post back and we do know.

    Joel S
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

Maybe you are looking for