Still having trouble passing variables

So, I read some on the MVC as my problem in my previous post
was trying to pass variables between classes in the same package.
I've got three classes, ListLoader, SectionPanel and TagWidget...
MVC respectively. Or at least I think I've set them up that way.
ListLoader is responsible for querying the db via PHP when
TagWidget asks it to and then supplies a string variable. I'm
trying to get TagWidget to pass that variable to the
viewer/SectionPanel to display in a textfield but can't seem to get
ListLoader to reflect that. Now, the problem is in how I've
formatted ListLoader, I believe so I'll only show that class and
just know that TagWidget is calling the variable using
"trace(loadFTPList.fulllist);" where loadFTPList is the instance
name of ListLoader. What am I doing wrong?
Here is my class in question:

You want to dispatch the event after fulllist is ready.
If you do this:
this.dispatchEvent(event.clone());
fulllist = record;
the event is dispatch before fulllist can be properly read,
so your listener
(whatever that may be) will find and empty/null/undefined
list.
but if you do this:
fulllist = record;
this.dispatchEvent(event.clone());
then in your listener
myListLoader.addEventListener(Event.COMPLETE, myListHandler);
function myListHandler(evt:Event){
if(evt.type == Event.COMPLETE)
// the list is ready
trace(ListLoader(event.target).fulllist);

Similar Messages

  • Are people still having trouble with iPhone/HP Laptops?

    Since I've had my Envy I've had no end of trouble with getting it and the iPhone to play nice. Any my search continues. So far, I have updated every bios, reinstalled Windows 7/iTunes many times, have restored the iPhone far more times than I care to remember and I am STILL having troubles with this thing. Having got through the Syncing issues with the PM55 chipset and iPhone I can now sync with my laptop. However all is not well as it would seem that I cannot sync my photo's. It doesn't matter if I have 0gb, 15gb or 30gb free, iTunes is telling me that there is not enough memory available. This error seems like an old one and there is even some info in the Apple KB but after following all that I still can't get it to sync my photo's.
    Some info on my setup:
    HP Envy 15 (all the latest drivers installed, bios F.24) Core i7-820, 8gb ram etc.
    iPhone 32gb, ver 3.1.3
    iTunes (whatever the latest one is)
    I should add that I can sync my iPhone with an identical install of intunes on my vintage Quad core desktop PC, but as I use my Laptop a lot more (and have all my media, email, and contacts etc on it) I would prefer to sync to it.
    Is there anything that I can do? Its very frustrating to have blown $4k on this equipment and it doesn't work...

    Well I tried deleting the photocache but alas, no luck. I also tried syncing with just the photo's enabled, and it worked! So then I enabled my other media and that copied across too! I thought I was on a bit of a roll here, but now whenever I try and sync it will do one of 3 things:
    iTunes will crash.
    iTunes will indicate that there is not enough memory on the device (+9GB free)
    iTunes will remove the iPhone from the sidebar (and my computer/disk management) even though it will continue to charge.
    Interesting point to note is that it works fine (cable/iphone/itunes/media library) on my desktop and macbook. Still really disappointed that I cannot get these two to cooperate. Also still haven't got any contacts from outlook but that may not be related?

  • Still having trouble with Gallery Slideshow

    Still having trouble with Gallery Slideshow, in Live Preview it bounces to  the top of the page but not centered where I like it.
    Hope someone can help.
    Thanks

    no is not hosted anywhere Im working on a Fantasy Photography site. from the image the top one is design mode and bottom is preivew mode. But my problem is
    as you can see from the images ( red boxes )  it moves when is in preview mode and the sizes of the images change as well as you can see. I dont know why? I tried figuring it out
    but no luck. I hope this helps.
    thanks

  • Sony just isn't helping me. I'm still having trouble transferring my NX3 video files.

    Well, I'm still having trouble transferring my NX3 video files to my editing software.  Sony suggested using the Sony Content Browser but that doesn't work. Sony just can't seem to help me. If the scene shot on the card is longer than 10 minutes, 4 frames of audio is lost from each file.  So if you shoot 60 minutes straight (say a wedding, you loose audio every 10 minutes)  I guess this doesn't sound important, unless it happens just as the bride is saying "Yes" in her vows.
    My original post is as follows:
    Sony NXCAM (NX-3) drops audio tracks when importing into FCPX and Premiere.
    I called Sony on Feb 13, 2015. I spoke with Doug (case no. 661972). I've been using my NX-3 for about 3 months. I'm still testing Sony NX-3. Looking for a way to transfer the video and audio without dropping audio frames. I didn't catch it at first, I mean it's only a few audio frames. It seems to happen with files over 12 minutes shooting. It seems that I can't upload the video/audio shot in my NX-3 to either my iMac (using FCPX nor Premiere) nor can I upload it to my PC (using Premiere) without 3 to 6 audio "frames" being dropped. When I spoke with Doug at Sony, a person I've actually spoke with in the past, he seemed frustrated. I was speaking with him as a professional and was attempting to find a solution, he was being protective and wanted to place blame at other companies. He stated that the camera played back the files correctly so it isn't a Sony problem. I explained that it is a problem for all of us if we choose Sony as our purchase. He told me "you should all buy Canons next time." That kind of through me. How do you speak to that. I explained that I am just looking for a solution and he told me to call the software and computer companies. Doesn't Sony realize that just because the camera works, that isn't the end of the road. You need to put the video into a devise to edit the video. I asked him what software would he recommend to a professional to use to edit footage taken by the Sony, he no reply. All I received from Doug was a really bad feeling about Sony. I've been a Sony "shooter" for over 34 years. I still can't believe the way I was treated. Not sure now what path I will take with this. But I surely need to tell everyone (all of my associates who have been asking me how I like my new camera) what response I received from Sony. Buy a Canon. By the way, I asked if Sony might have another camera of the same type that didn't drop audio. Doug didn't know. Really strange. Is Doug not happy with his prosition with Sony? 

    Auto Correct:
    As far as I'm aware this cannot be turned off. Someone may prove me wrong on this point
    CDDB Update:
    Again, as far as I'm aware this cannot be done. You could use WMP to update the files then import them into iTunes.
    Music Deletion:
    iTunes seems to only ask you if you want to delete a file if the file is located in its library folder. In the Preferences>Advanced>General section try changing your iTunes Music Folder to the folder where all your music is stored and it should ask you if you want to move files to the recycle bin when you delete them.
    Library Update:
    This is a feature I with iTunes would introduce. When you delete or move a file iTunes loses track of it. What it needs to be able to do is first check to see that all the existing files in the library are still there, and remove the ones that aren’t, then it needs to search for new tracks.
    It can search for new tracks but if you have renamed a file, then it will be in the library twice, one is the old file (which will no longer play because it doesn’t exist) and the other is the new file.
    The way I now avoid iTunes annoyances in relation to file names and folder organisation is I let iTunes sort it all out for me. Selecting "Keep iTunes Music folder organised" and "Copy files to iTunes folder when adding to library" will get iTunes to sort your music into Artist folders, then within the Artist folders are Albums, then within the album folders are the actual files, which are named Track Number Artist. For example Coldplay - Clocks will be named 05 Clocks.mp3.
    WARNING: Selecting "Keep iTunes Music folder organised" will copy all the music in your library to the iTunes Music folder. You must have enough Hard Disk space to do this.
    ...that wound up longer then I thought it would. Hope you can make sense of it all.
    Cheers,
    Ben

  • Am still having trouble downloading Adobe Flash Player.

    Am still having trouble downloading Adobe Flash Player.

    Count your blessings. You're better off without it.
    If you insist upon having Flash Player, there is one and only one URL from which to download it:
    http://get.adobe.com/flashplayer/
    You must also enable plug-ins in Safari. Make your Safari Preferences look like this:
    FYI this is the legitimate Flash Player installer:
    This one is bogus:

  • Still having trouble logging in--are you?

    Hi,
    This question's not as crucial as my other post. Is everyone else still having trouble logging in, and getting that error message.
    I end up clicking on My Questions and eventually journey to the post area.
    If there's an answer, please let me know (and others, maybe, too)
    Thank you.
    Allan the Questioner

    First, I've never asked you to "give me a Solved" because that is a violation of the Terms of Use. Second, I don't recall getting angry with you about anything. I don't even know you. Third, I answered your question. If you think I was rude, then I apologize. Rest assured I'll make no further effort to help you.

  • Hi, ive been having trouble passing my logic sessions to another computer, we're both using a macbook pro 10.6.8 and logic pro 9 with the same plugins, the session opens in the other computer but all the synths reset to presets

    Hi, ive been having trouble passing my logic sessions to another computer, we're both using a macbook pro 10.6.8 and logic pro 9 with the same plugins (native instruments komplete 7), the session opens in the other computer but all the synths reset to presets, this didnt happen the first time I shared a session, but its been happening lately quite often

    kwmlr439 wrote:
    CSOUND Read the title please:
    Re: Macbook Pro 10.6.8 RAM Upgarde to 8 GB
    The amount of RAM is not dependant on the operating system. It is all about the model of you Mac.
    10.6.8 is the version of OS X that is installed on your system. It has no real baring on the amount of RAM that CAN be installed.
    Personally I have never had good luck with Corsair RAM. I have always had good luck with Crucial and Kingston.
    Message was edited by: Shootist007
    Message was edited by: Shootist007

  • Still having trouble

    I'm still having trouble updating my itunes still geting errors when trying to update it wont even let me uninstall itunes been looking through the forums and saw someone use fixit but so far its been going for a few hours only saying attempting to resolve problems with tiunes i have no other ideas on what to do to fix itunes so i can update it and have it work properly

    I'm still having trouble updating my itunes still geting errors when trying to update it wont even let me uninstall itunes been looking through the forums and saw someone use fixit but so far its been going for a few hours only saying attempting to resolve problems with tiunes i have no other ideas on what to do to fix itunes so i can update it and have it work properly

  • Having trouble with variables followed by a period in user defined reports.

    Using SQL Developer 1.0.0.15 on XP.
    The DB is Oracle 10.
    Having trouble with variables followed by a period in user defined reports.
    select * from &OWNER.TABLE_NAME
    I noticed that the "Data Dictionary Reports" use :OWNER
    So I have tried all sort of variations:
    select * from :OWNER.TABLE_NAME
    select * from :OWNER\.TABLE_NAME
    select * from ":OWNER".TABLE_NAME
    select * from ':OWNER'.TABLE_NAME
    select * from (:OWNER).TABLE_NAME
    And every other variation I can think of. This is a simple example, but all my reports need the owner of tables as a variable.
    I assume this is simple, I just have not hit the right combination.
    Thanks -
    Dyer

    Use two points ..
    select * from &OWNER..TABLE_NAME

  • Still having trouble"Custom" Persissions

    Sorry if I duplicate, as I posted this as a reply to a closed question and wasn't sure if it would be answered.
    I have followed all the discussions and fixed up the "Custom" permissions on my Startup drive, 3 Partitioned drives, and External Firewire drive, BUT my external Firewire WD 1Tb drive that I use for Time Machine will NOT toe the line! I have followed all the commands suggested by V.K. And still have a padlck on my drive.
    I have done :
    sudo chflags nouchg /Volumes/"Terrasaur"
    sudo chmod 775 /Volumes/""Terrasaur"
    to no avail
    and
    chflags -R nouchg /Volumes/Terrasaur
    chmod -RN /Voumes/Terrasaur
    chmod 775 /Volumes/Terrasaur
    No change!
    Here is some data that MAY help.
    ====================>snip<==========
    G5-Desktop:~ steve$ id
    uid=501(steve) gid=501(steve) groups=501(steve),98(_lpadmin),80(admin)
    G5-Desktop:~ steve$ ls -ale /Volumes
    total 80
    drwxrwxrwt@ 19 root admin 646 19 Oct 11:08 .
    drwxrwxr-t@ 45 root admin 1598 19 Oct 00:46 ..
    0: 9D0FB03D-A6E9-43F7-BCF6-FD3BC370C936 allow list,addfile,search,add_subdirectory,deletechild,readattr,writeattr,readextattr,writeextattr,readsecurity
    1: EA51D771-76E4-4638-A1BA-732654853029 allow list,addfile,addsubdirectory,readattr,writeattr,readextattr,writeextattr,readsecurity
    -rwxrwxrwx 1 matt matt 82 3 Jun 2006 ._512 PSP
    -rwxrwxrwx 1 matt matt 82 30 May 2006 ._JOHN
    -rwxrwxrwx 1 steve steve 82 17 Sep 2007 ._Jeff
    -rwxrwxrwx 1 steve steve 82 10 Jan 2007 ._MATTS
    -rwxrwxrwx 1 matt matt 82 16 Jan 2006 ._PSP
    -rwxrwxrwx 1 steve steve 82 10 Nov 2005 ._PSP 512
    -rwxrwxrwx 1 steve steve 82 3 Nov 2005 ._PSP 512G
    -rwxrwxrwx 1 steve steve 82 17 Sep 2007 ._Steve
    -rwxrwxrwx 1 matt matt 82 2 Dec 2007 ._Untitled
    drwxrwx---@ 22 steve Jeff 816 10 Aug 10:53 Firewire Backup
    drwxrwx---+ 38 steve steve 1360 24 Sep 08:39 Jeff
    0: user:Jeff allow list,addfile,search,add_subdirectory,deletechild,readattr,writeattr,readextattr,writeextattr,readsecurity
    drwxrwxr-x+ 21 steve steve 782 3 Oct 20:51 Lower Internal
    0: EA51D771-76E4-4638-A1BA-732654853029 allow list,addfile,addsubdirectory,readattr,writeattr,readextattr,writeextattr,readsecurity
    drwxrwx---+ 370 steve steve 12648 26 Sep 22:26 Matt
    0: user:matt allow list,addfile,search,add_subdirectory,deletechild,readattr,writeattr,readextattr,writeextattr,readsecurity
    lrwxr-xr-x 1 root admin 1 19 Oct 10:55 Startup Disk -> /
    drwxr-xr-x 3 matt admin 102 8 Jan 2008 Terrasaur
    drwxr-xr-x 3 matt admin 102 6 Jun 18:25 Terrasaur 1
    drw-rw-r--+ 54 root admin 1904 1 Sep 14:43 Terrasaur 2
    0: EA51D771-76E4-4638-A1BA-732654853029 allow list,addfile,addsubdirectory,readattr,writeattr,readextattr,writeextattr,readsecurity
    G5-Desktop:~ steve$
    ====================>snip<==========
    The disk "Terrasaur" is the one I'm having trouble with.
    Can anyone help please?
    Steve

    that's the problem. eject that drive. then enter the following in Finder commandshiftg. In the resulting popup enter /Volumes
    This will open a finder window for /Volumes directory which is normally hidden. all your drives should be there. the real drives look like aliases. but there should also be a couple of fake Terrasaur drives. they will look like actual folder. Delete them. If there is some stuff inside that you might need copy them somewhere first. now mount the real Terrasaur drive and rerun the terminal commands to unlock it.

  • Having trouble passing a getter method in a PreparedStatement

    Basically I've got it so that the user fills in their name, dob etc and when they click on register it inserts their information in a registrations table. However, I'm having trouble getting this working (NullPointerException) so any help would be greatly appreciated :)
    RegisterDetails.java
    public void writeToTbl() throws SQLException, ClassNotFoundException {
              DBase d = new DBase();
              GUI g = new GUI();
              i = 0;
              String regStr = "INSERT INTO REGISTRATION VALUES(?,?,?,?,?,?,?,?)";
              PreparedStatement st = d.getConnection().prepareStatement(regStr);          
              st.setInt(1, i);
              st.setString(2, g.getName()); //Exception error points to this line
              st.setString(3, g.getDOB());
              st.setString(4, g.getRoad());
              st.setString(5, g.getCity());
              st.setString(6, g.getCounty());
              st.setString(7, g.getPhone());
              st.setString(8, g.getEmail());
              st.executeUpdate();
         }GUI.java
    btnReg.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent ev) {               
                        if (ev.getSource() == btnReg && (agree.isSelected())) {
                             writeToFile(f, bWriter);
                             RegisterDetails reg = new RegisterDetails();
                             try {
                                  reg.writeToTbl(); //Exception error points to this line
                             } catch (SQLException e) {
                                  e.printStackTrace();
                             } catch (ClassNotFoundException e) {
                                  e.printStackTrace();
                        else {
    // JTextFields return their results
    public String getName() {
              return name.getText(); //Exception error points to this line
         public String getDOB() {
              return dob.getText();
         public String getRoad() {
              return road.getText();
         public String getCity() {
              return city.getText();
         public String getCounty() {
              return county.getText();
         public String getPhone() {
              return phoneNo.getText();
         public String getEmail() {
              return email.getText();So essentially I'm trying to get the information from the textfields and insert it into the registrations table but nothing seems to work. I've followed numerous tutorials on how to do it, but all of them use "fixed" values e.g., setString(1, "James") etc but I need the value of the JTextFields as they will be different every time. I'm completely at a loss with this at the moment so any help would be magnificent. :-)
    Thank you!

    so any help would be magnificent.Write a class that accepts the values that you want to insert. I would suggest passing an ArrayList. It opens the connection, does the insert, closes the statement and the connection.
    It does NOT have any GUI code in it.
    You then debug that class and verify it works.
    THEN, after you have verified it works, you write ANOTHER class that does the gui. It uses the class above to do the database work.

  • Still having trouble with Adobe Viewer

    I'm still having the issue that when I have multi state objects, (state 1 is off the page, state 2 is on the page) the hidden state (state 2) is showing up on the iPad Adobe Viewer when you click the |||| icon from the menu in the upper left corner. In the overlay creator panel 'tap to play/pause' is not checked.  'Cross Fade' and 'Hide before playing' are checked. 
    Any help would be appreciated!!  thank you!

    What I was able to determine:  In the Oject States where all the states are listed.  The State where there is no object in view needs to be listed first. (doesn't matter what state number it is, just needs to be first in the list)  When I did this for all my MSO's there was no viewing problems!!  Thanks for leading me down the right path. much appreciated!

  • Still having trouble with NeoSpeech

    I have re-installed NeoSpeech and I am still having problems.  I read the comments about this but I have not seen anything that fixes the problems I am having.
    When I select the Kate voice it works, but if I select the Paul voice you don't see that short processing status, and no audio is created.  It selects the Paul option in the drop-down, but there is no audio.  If I create audio with Kate, then switch it to Paul, nothing happens and the voice remains Kate.  As I said, I reinstalled but nothing changed.  What else should I do?
    To Adobe: Does this feature have bugs, or should it be working?

    no is not hosted anywhere Im working on a Fantasy Photography site. from the image the top one is design mode and bottom is preivew mode. But my problem is
    as you can see from the images ( red boxes )  it moves when is in preview mode and the sizes of the images change as well as you can see. I dont know why? I tried figuring it out
    but no luck. I hope this helps.
    thanks

  • Still having trouble with audio on Macbook Pro

    I had posted a discussion board earlier on this issue. I've been having trouble with audio for certain videos on youtube and basically any website embedded with a video. The audio works for a few seconds that doesn't or it doesn't work at all. My volume is up, not on mute, and the one on the video isn't on mute either. It's funny because I just tried watching a video on Firefox (as opposed to Safari) and it works. Could it possible be something with the settings for safari?

    Try restarting your Mac, resetting your router, and resetting your modem. My cable internet has gotten slow at times as well, and when I reset my router everything cleared up.

  • HT4061 hi im still haveing trouble with my ipad its not conected i must be doing something wrong tell me again how to conect my ipad

    why am i haveing trouble downloading to my ipad it froze

    First, try a system reset although I can't give you any confidence.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  It could take well over an hour!  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore, go into Recovery Mode per the instructions here.

Maybe you are looking for

  • How do i put photo's in my ipod?!

    I need to know how to but photo's in my ipod. I have an ipod nano. 4 gb

  • Need a list of oracle templates related to Items

    As a requirement i need to import items through a template. So i need to know the list of templates available to import(process) item import and where can i found them. Can any body please give me the list or suggest where can i get those templates..

  • How do I initiate WiFi Sync?

    iOS 5 installed, OS X 10.7.2 installed, iTunes 10.5 running, iPhone plugged into power, both iPhone & Mac on same WiFi network: but no Sync. What's missing to make it happen?

  • Will ichat with mac os x 10.5.8. talk for free to window 7 skype

    will ichat with mac os x 10.5.8. talk for free to windows 7 with skype and will it work?

  • IBook G4 won't wake up from sleep

    After I've left my iBook sitting for a while (30 minutes or so) and it goes to sleep, I've found I have to reset my iBook (push the button on the bottom and the power button at the same time -- sometimes several times) to get it to wake it up. No amo