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.

Tags: Flex

Similar Questions

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

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

  • Message error saying i ' cannot create files. Please check if you have the permission to write to the installation folder. »

    I try to get the free upgrade to windows 10 because im always active on the old windows 7, but when I hit accept I get an error saying that i ' failed to create the files. Please check if you have permission to write to the folder of installation.' does anyone know how I can fix this problem? I don't want to run on this old windows system I want a bad upgrade.

    Original title: upgrade Windows 10

    Sure that you have administrator you privileges on the computer that you are trying to level?

    Click Start, type: accounts

    Press enter, and then check your privilege account to ensure it's administrator.

    You can also try the upgrade manually:

  • How can I clean install Win 7 Pro on a series of 330 intel SSD using a Sony Vaio laptop as the source. I have the original disc and the authorization only

    My Office HARD drive had a fatal accident and poster now under vacuum. It was a disk of 1 TB with Win 7 Pro upgrade to Win 8 Pro.I have records of origin 32 and 64 bit OS and wish to install the OS on a SSD using the optical drive on my Sony Vaio, which will become then the boot drive in my office.

    [Moved from comments]

    You must do the installation on the desktop. You can not install windows on the disk into a computer and then move the disk to another computer and do work. When installation is complete, it reads information from the BIOS of the computer, on which it is installed and when you put the disc in another computer that Windows does not find the information used during the installation.

    You will need to put the new drive in the desktop, install Windows 7 on it, then upgrade to Windows 7 to Windows 8 again.

  • why I don't get to download some files PDF Online, even though I have the latest from adobe, the message I get is that i'm missing plugin.

    I'm trying to upload a PDF file and it is a failure and I have the new version of adobe, it tells me I'm missing plugin, why is - this I do not understand.

    why I do not receive a response

  • Updates of player on Mac to State, she must have the internet connection, but my Safari is in place and works very well. What should do?

    I have the reader on Mac OS 10.10.2 9.5.5 and frequently get notifications of updated to Adobe in my dock, accompanied by a warning sign indicating an internet connection is necessary, but I have my place Safari browser and works well. So I can never get the update beyond that point. This happens regularly and I wrote Adobe and never received a response. Adobe should make the updates one file without welding, almost automatically, but instead, they are still using archaic software that is confused (unless you are a computer scientist) and difficult to solve. Adobe could do much better.

    Your Reader version 9.5.5 is very old and is no longer supported.

    I suggest that you uninstall, then install the latest version using the Installer http://get.adobe.com/reader/enterprise/ offline

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

  • I was cleaning my computer deleating some files... I must have its deleated how it back

    Not sure of all the files that were deleated

    Hello

    · What is the number and the model of the computer?

    You can follow the steps from the link below: no sound in Windows: http://windows.microsoft.com/en-US/windows/help/no-sound-in-windows

  • After a download program, I can't save the file. He said do not have the authorization

    After downloading a program window appears and tells SAVE or cancel. I click SAVE, but I get a message saying that I don't have permision. So the file is lost. I need help to save the files.

    Hello

    You can try the steps in the link below to fix the problem.

    How to set, view, change, or remove special permissions for files and folders in Windows XP

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

    How to share and set permissions for folders and files using Windows XP

    http://TechNet.Microsoft.com/en-us/library/bb456988.aspx

  • I can't delete a file on my desktop. I have the following message: "this action cannot be completed because the file is opened in the floppy disk Bus Service" Please help?

    I don't know what Bus Service floppy disk on my computer, I had a friend install a game I wanted to even out of its hard disk of his computer in his home. How can I remove this file, I deleted all the related files through the control panel to uninstall programs feature... I am at a loss. Help, please!

    Hello

    DiscSoftBusService.exe is linked to the bus floppy disk floppy disk service Ltd. it is related to DAEMON Tools software.

    You can check at the place.

    Installation folder: C:\Program daemon tools ultra

    If you want to uninstall, you can track the location for the uninstall program.

    Uninstaller: C:\Program Daemon Tools Ultra\uninst.exe

    Hope that this helps, if you have any additional questions, feel free to post. We will be happy to help you.

  • Windows Photo Viewer cannot open this photo because either way, Photo Viewer does not support this file format, either you do not have the latest updates to Photo Viewer

    New PC with Windows 7.  Photos taken before the new PC either cannot be a spectator, or can be displayed but are in the right folder with the incorrect file names (e.g. cat photo is labeled as DOG)

    In my case, when I plugged in my phone on my desk, it prompted me to update the software to communicate better with my phone. Immediately after completing the update was when I lost the ability to open images in Photo Viewer.

    To solve the problem, I went to control panel, and then uninstall a program and then uninstalled the newest program associated with my phone. It was easy since I knew exactly when he started to act up. Some of you may need some trial and error to find the problem.

  • Windows Photo Viewer cannot open this photo because Photo Viewer does ' t support this file format, or you do not have the latest updates to Photo Viewer

    Others have had problems similar to mine and I read all the posts but nothing seems to solve my problem.

    I saved a bunch of pictures in a folder on an external flash drive that were originally attachments in e-mail messages. They run very well on the disc and I opened and one closed the reader a couple of times but now I can't seem to open it in the viewer of photos or any other viewers. I have other pictures on the same drive in other folders and they open without any problems.

    The first time it happened I display thumbnails but could not open them. I just insterted my flash drive to see what was going on, and now I can see only 3 thumbnails on a total of about 50 photos. A lot of disk space too.

    Any suggestions anyone. Thanks a lot if you can try to help him.

    Hello pentax12,

    It should not make difference if the folder has been shared or not to see the photos.
    I suggest you see if you can copy them to the hard drive and then try to open in the Gallery of photos or a different default viewer.

    Let us know.

    Thank you

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

  • I am now using CC and want to get rid of CS5 on my Mac, but the uninstall file is missing. I still have the original disks. What should I do?

    Should I re - install CS5 so I can uninstall it then?

    Hello Will, Rob, Nathalie, and Peter.

    Thank you for having responded to my call for help. With all your advice, here's what finally worked.

    I decided to reinstall CS5 Design Premium. (Used only the first disc with the red label, not the contents of the disc with the black tag.)

    At the end of the installation was asked to close the 2 things, which has been SafariNotification.

    I opened "Activity Monitor" and highlighted SafariNotification. Then went to the upper left of the window and tapped the little black x.

    I had to click "Force quit" because that 'smoking did not work.

    The installation of CS5 then finished.

    I went directly in the "Uninstall" folder and you click on uninstall.

    When uninstallation is complete, the files for many of these Adobe CS5 applications were still in my folder apps, but when I looked in them, they were empty. I just threw.

    However, Flash, Photoshop, and Patchfiles was still MB in them but that they would not open, so I just threw those too.

    There it is. I hope that this explanation will help someone someday. Thanks again for your help.

    Liz

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

Maybe you are looking for