ViewStack External File Cannot Access AS Script

Hello,
I am very new to both Flexbuilder and Actionscript so I am
going to need some help please. I have a main mxml file that
contains a ViewStack as well as an external AS file. The problem is
that I am using external mxml files for the ViewStack that need to
call functions in the external AS script file which is included in
the main mxml. I am gettting compiler errors in these external mxml
files (Call to possibly undefined method ) because they cannot
access the external AS functions since this file is included only
in the main mxml.
Everything worked great when I had all the code in one main
file, but I am trying to get a handle on separating the AS code
from the mxml code as well as trying to use external mxml modules
in the ViewStack. Can someone give me some pointers how to
successfully separate everything and make it work?
Thanks in advance...
Scott

"scooter5791" <[email protected]> wrote in
message
news:fak7qt$7vp$[email protected]..
> Ok, I figured it out. In the external mxml module I
needed to call the AS
> functions using the parrentApplication prefix (scope?)
such as:
>
> <mx:Button ...{normal attribute here} ...
> click="parentApplication.myFunction()" />
>
> This allows the compiler to know where the actual
function code resides.
>
> Is this the preferred way to do this or are there other
things I should be
> aware of? Thanks as always.
You can use the import statement to import the class into the
child file, or
you could broadcast an event that tells the parent to run the
function
instead. Referring to the parent function is only a good idea
if you want
to create a situation where the chld component only works
within that same
structure (tightly coupled).
HTH;
Amy

Similar Messages

  • FDM Cannot Access Calc Script

    We use FDM to load data to Essbase and then run a script after export to Aggregate the data using Vlaidation Entities in FDM. We wrote a new Agg Script and so I changed the Validation entity from CalcALL to CALCCMA and now I get the below error.
    Error: Essbase API Procedure: [EsbCalcFile] Threw code: 1030214 - 1030214 - [Tue Aug 03 13:25:25 2010]XXXXX/PLANNING/IncStmt/admin/Error(1030214)
    User [admin] cannot access calc script: CALCCMA
    The script is in the same folder as the old one. What is also strange is that when I try to change back the Script to CalcALL in the FDM valdiation entity I get an error as well. I checked all the integration settings and they are correct. I checked every script in FDM and asearched the adapter XML and found no references to the CalcALL script. I can't figure out where else the script would be referenced in FDM or if I need to change something on the Essbase side.

    I just read the ReadMe and here is the relevant part:
    Essbase Security Requirements
    Some FDM tasks require the user to have certain security privileges for Essbase. The following table outlines the tasks and Essbase privileges required.
    Perform a consolidation (assigning a Validation Entity to the FDM location).     
    Add Calc privilege (ESB_PRIV_CALC) to the active database
    I'm assuming I will need a DBA to check this. The funny thing is that this was working before perfectly fine and then I changed the script in the validation entity and got the error. When I changed it back to the original script that worked I recive the same error. I was not involved in the implementation so I don't know how this was set up.

  • Files cannot access because they are used by another process

    I am trying to delete some files in:C:\inetpub\wwwroot\my_site\Under my_site, there are many files and folders, including bin folders which has some .dll files. As soon as I run the script, I get an error message that some of the .dll files cannot be accessed because they are being used by another process, and on some dlls, I get a permission denied error.I don't know what the problem is. I am using the following script, which works perfect for any other folders, but not for the one I am trying to delete. $content = get-childitem 'C:\Backups\my_site'
    $sortedContent = $content | Sort-Object LastWriteTime -Descending
    write-host "This is the list of all the backups for my_site :"
    $count = 1
    foreach ($item in $sortedContent)
    Write-Host ("{0}: {1}" -f $count, $item.Name)
    $count++
    # 2.Take input from user
    $itemNumber = Read-Host "Please select which backup you want to restore"
    $confirmation = Read-Host "Are you Sure You Want To Proceed:"
    # 2.Take input from user
    if ($confirmation -eq 'y') {
    # 3. BACKUP script
    ./bacup_mysite.ps1
    # 3. BACKUP
    # 4. DELETE CONTENTS OF my_site
    get-childitem "C:\inetpub\wwwroot\my_site\" -recurse | % {
    remove-item $_.FullName -recurse -force
    # 4. DELETE CONTENTS OF APP
    # 5. COPY CONTENTS OF ZIP INTO APP DIRECTORY
    $itemNumber = $itemNumber -1
    if($sortedContent[$itemNumber].PSIsContainer -eq $true)
    $src = $sortedContent[$itemNumber].FullName + "\"
    $WebzipPath = $src + "my_site.zip"
    $Date = Get-Date
    $folder_date = $Date.ToString("yyyy-MM-dd_HHmm")
    $tempPath = 'C:\_Temp\Restore\my_site_restore_' + $folder_date
    if (!(Test-Path -path $tempPath))
    New-Item $tempPath -type directory
    ./Library/unzip.ps1 $WebzipPath $tempPath
    $tempPathWeb = $tempPath + "/my_site/*"
    Copy-Item -Path $tempPat -Destination 'C:\inetpub\wwwroot\my_site\' -Recurse -
    force

     am using a script which backups the folders and than in the next block tries to delete those folder from there original location.This is the script
    if ($confirmation -eq 'y') {
    # 3. BACKUP script
    ./bakup_mysite.ps1
    #If i put a Read-Host here it does stop and than ask user to press any key and than it
    deletes the next block, but i want to put a wait so user does not have to press any key
    and everything happens automatically, # 3. BACKUP
    # 4. DELETE CONTENTS OF my_site
    get-childitem "C:\inetpub\wwwroot\my_site\" -recurse | % {
    remove-item $_.FullName -recurse -force
    }I would like the backup to finish first and than delete the original files, because if i use the above script while backup up some files gets locked and at the same time the next block gets executed and it tries to delete the files thats why i would like to put a wait for backup to finish
    Check your assumptions.  How do you know that backup is the only process that might have a lock on those files?
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • I cannot access express scripts through this browser. Why??

    When I try to log on the express scripts I get a message telling me that the web page cannot be found. It works fine with explorer, but I don't like that browser. Thanks for your help.

    The homepage of the web site appears, but when I try to log into my account I get the message about not finding the page.

  • Java file cannot access other class in same package???????

    I have written a bean as follows-------
    package CustTags;
    public class TomMovieBean
         private String movieName;
         private String movieDirector;
         public void setmovieName(String movieName)
              this.movieName = movieName;
         public String getmovieName()
              return this.movieName;
         public void setmovieDirector(String movieDirector)
              this.movieDirector = movieDirector;
         public String getmovieDirector()
              return this.movieDirector;
    Now i am writing a tag handler for my JSP custom tag as follows----------
    package CustTags;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    import java.util.*;
    public class Dynamic extends TagSupport
         private List movieList;
         public void setmovieList(List movieList)
              this.movieList = movieList;
         public int doStartTag() throws JspException
              Iterator iterator = movieList.iterator();
              TomMovieBean TMBObj = null;
              try
                   JspWriter out = pageContext.getOut();
                   while(iterator.hasNext())
                        TMBobj = (TomMovieBean)iterator.next();
                        String movieName = (String)TMBObj.getmovieName();
                        String movieDirector = (String)TMBObj.getmovieDirector();
                        out.println(movieName+"...."+movieDirector+"<br>");
              }catch(Exception ex)
                   throw new JspException("Error in doStartTag()");
              return SKIP_BODY;
    Now when i compile Dynamic.java it shows foll. errors
    Dynamic.java:19: cannot resolve symbol
    symbol : class TomMovieBean
    location: class CustTags.Dynamic
    TomMovieBean TMBObj = null;
    ^
    Dynamic.java:27: cannot resolve symbol
    symbol : variable TMBobj
    location: class CustTags.Dynamic
    TMBobj = (TomMovieBean)iterator.next();
    ^
    Dynamic.java:27: cannot resolve symbol
    symbol : class TomMovieBean
    location: class CustTags.Dynamic
    TMBobj = (TomMovieBean)iterator.next();
    ^
    3 errors
    I am unable to comprehend why it can't recognize TomMovieBean despite the fact that its a public class and in the same package as that of Dynamic.java

    Is your classpath set correctly? I.e. does it point to the directory containing the CustTags directory?
    BTW, by convention, package names are written in lower case.

  • Moved iTunes library to an ext hard drive to make space on my int drive... Followed steps from apple.  Now I cannot access my music... It says: "File could not be used because the original file cannot be found.  Would you like to locate it?"

    Moved iTunes library to an ext hard drive to make space on my int drive... Followed steps from apple.  Now I cannot access my music... It says: "File could not be used because the original file cannot be found.  Would you like to locate it?"
    I moved my iTunes library to my external hard drive some time ago and I followed the directions listed here on the apple support page.  It did copy my library and now is on my hard drive... I can open iTunes and use it to sync all of my devices but I would like to play my music... I can see all of my music files but can not play them if I click on an album or song it says the following:  "(file name) could not be used because the original file cannot be found.  Would you like to locate it?"  I click locate but do not know where to go from there?  I need a way to access all files and not to hunt down one at a time on my hard drive... I am pretty sure I deleted the original library to make space on my internal drive which was the reason for moving it.  I have tried and tried to fix it and do not have a lot of time to do so with a one and two year old at my house who do not like it whenI sit down at my computer.  What to do???  Any help is much appreciated!!!

    See Make a split library portable. Move all of the bits of the library together in the the correct shape and it should work. Or undo exactly what you did and then start over.
    If you're a former Windows user don't try merging two folders together that have the same name by dropping one into the same folders as the other, as that goes badly on a Mac.
    tt2

  • Cannot access shared external hard drive with other mac accounts

    I cannot access a shared external hard drive with other mac accounts (all accounts are on the same macbook Pro). The shared external drive is shared via time capsule and is connected (of course) in USB. I see well this external hard drive as a shared disk with my main account. Yes shared option has been activated with the Airport Utility .. but when I open other account these othe accounts can see the external drive but cannot access to its content that is flagged with a no way sign. Strangely enough when I close my main account and start opening a new session with one of the other account then fine I can access the external hard drive and its content .. BUT then it is from my main account than I cannot access its content the no way sign showing ..
    Looks like only one account at a time can access the content of this SHARED external hard drive .. any one as an idea on how to really make it a shared hard drive so that all accounts on the same mac can also access it ? I am at my wit ends on this case. THANKS ..

    Results of my enquiries at Apple Genius Bar .. the guys found the problem interesting. They've been unable to provide a fix neither to give any explanation as to the reason why. To be fair I was not much impressed by the technical level demonstrated ..
    In the mean time I have found that if account no.1 can see the shared external drive content and in such case account no.2 (same Mac computer) cannot see its content (only the external HD with a no way sign) this account no.2 can UNMOUNT (by ejecting) this external HD from account 1 and then remount it (just clicking on the TC shared part in a finder window) and .. see and access its content ; whilst account no.1 cannot see its content anylonger. Unless it unmounts the shared external HD and remount it .. then account no.2 can see its content anylonger. This can goes on an on.
    So eventually YES the TC can allow to share a USB external drive between several accounts and a same Mac .. BUT this require to unmount and remount EACH time the external drive is accessed from a "no.2 account". So OK to share files with seldom access but not practical in case of frequent access needed.
    I just I have now to figure how iTunes can automatically unmount and remount a shared external HD when it needs to access one of this shared HD content from on time account no.1 and then next time from account no.2. May be I am asking too much ..

  • Move-item: The process cannot access the file because it is being used by another process.

    Hey,
    I have a powershell script where I first use Get-childitem to receive a number of files.
    Then I do some stuff with it and try to move the file afterwards.
    Unfortunately if I am using a lot of files I receive very often the error:
    The process cannot access the file because it is being used by another process.
    Even -Force parameter does not help further.
    Based on my look around it is not used by another process.
    I think it is still 'in use' by powershell from script commands previously.
    Is there any way to 'see' if the file is still in use currently and wait for this to end?
    Or can I 'close' the current usage of the file?
    Thank you :)

    Hey,
    Thank you.
    I build the following function.
    But either the $return = $true I receive "The process cannot access the file because it is being used by another process." when I try to move-item... :(
    Function Wait-FileUnlock($FilePath){
    Write-Host " "
    $FileInfo = New-Object System.IO.FileInfo $($FilePath)
    DO{
    try{
    $fileStream = $fileInfo.Open([System.IO.FileMode]::Open, [System.IO.FileAccess]::Read, [System.IO.FileShare]::Read)
    $return = $true
    catch{
    Start-Sleep -Milliseconds 5
    Write-Host "." -NoNewline
    $return = $false
    While($return -ne $true)
    $Error
    return $return
    Another functions is:
    Function Wait-FileUnlock($FilePath){
    Write-Host " "
    DO{
    $Error.Clear()
    Rename-Item $FilePath $FilePath -ErrorAction SilentlyContinue | Out-Null
    Start-Sleep -Milliseconds 5
    Write-Host "." -NoNewline
    While($Error.Count -ne 0)
    This one waits .. but it seems not to end waiting at any time :(

  • I have just restored data from an external hard drive, but half of my iTunes songs are getting the error "original file cannot be located."  Where are these files?

    My Windows 7 PC just had to be reformatted, and I have retrieved all of my files from an external hard drive.  About half of my iTunes library is working fine, the other half pop up the error statement "original file cannot be located."  If they haven't come off my external drive, where are they?

    This happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    tt2

  • I have lost my Safari app and all the bookmarks that go with it. I have tried to download my back-up on external drive but cannot access it. Tried a start with C key held down but still no access to the back-up app.

    I have lost my Safari app and all the bookmarks that go with it. I have tried to download my back-up on external drive but cannot access it. Tried a start with C key held down but still no access to the back up app.
    Have used Superduper app. to back up and checked back-up occasionally to see if all files present  and appeared OK.
    I had previously started machine using original CD #1 to try and replace Eudora which was acting up. Did not knowingly touch Safari.
    Running iMAC System 10.4.11
    How can I successfully download from the Maxtor back-up?
    Ivan

    Further info.
    I checked the content of my other back-up and found the bookmark Bookmarks.plist in the library under Safari
    Dumped the existing copy in the computer and drag-dropped the back up. All bookmarks restored.
    Solved the Stickies problem by using Spotlight  to find file "stickiesdatabase" and did a drag- drop to replace file. All data restored.
    Re Ical data loss. Used Spotlight to find iCal document in  Library - Preferences where I found com.apple.iCal.plist in folder.
    Got ready to make change but did not immediately remove file. When I returned to Preferences folder to grab above document,
    the readable descriptors had been changed to code consisting of some upper case letters and/or single symbols!
    So now I cannot tell which is the symbol  iCal.plist
    Thanks for leading me so far, but how do I find that plist for my calendar?

  • Cannot access my external hard drive!

    A few month ago when I was transferring my files from a PC via a Seagate external hard drive (originally formatted on that PC) to my then new Intel iMac OS X 10.5.6, I made a newbie mistake in not properly "dismounting" before I pulled the USB. Now I cannot access the files on the Seagate external hard drive either from my iMac nor on my PC.
    Are there simple ways I can fix this without spending money on new software? Or would Apple Genius Bar be able to take care of this? Thanks!

    1) disconnect that external cables and all
    2) power cycle that Seagate, power on power off a few times
    3) zap pram on imac
    4) reset the power manager on the imac look that up on apple/support and type in search window
    when done:
    1) power on imac
    2)power on seagate
    3) connect usb to imac first
    4) connect usb to seagate should mount if it does not then no luck.

  • Using AirPort Time Capsule as an external drive with access to files by guest account

    Is it possible to use my AirPort Time Capsule as an external drive with access to files by a guest account?
    I would like to store a large number of folders containg photographs on my AirPort Time Capsule and allow anyone with a password to access the photographs - at the time of viewing the Time Capsule would be connected to the internet but I wouldn't want users to actually access anything other than the files on the Time Capsule - is this possible?  if so any help in configuring it would be really helpful.

    No it is not possible.. Guest is just that.. a guest that is allowed permission to access the internet but none of the local files.
    To give a person access to the TC they must have password to access your normal network..
    From there it is up to you how you do this.. people cannot actually access files on your computers unless you give them share and password permissions for that.. you can even setup accounts on the TC although I recommend against it.. if you want shared photos anyway. All security on a TC is illusion.. merely pressing the reset and it is all blown away.. so if you are concerned about security don't put stuff on the TC people should not access.. or like your TM backups ensure they are encrypted.
    A person can then access you TC and the photos.. but what else on the network??

  • Cannot access shared external drive on iMac from Windows 7

    Used to be able to access this drive with no problem from any of my PC's. Sent iMac in for repair and system drive was wiped so I'm starting from clean install of Leopard. Did all the updates first including 10.6.4 which wasn't on before the system drive died.
    Firewall is off
    SMB is on
    Everyone as well as main user has read write access to external drive
    iMac is in the same workgroup as machine, although it wasn't before and it worked fine.
    PC can ping the IP of the iMac and get a response, can see the iMac in list of networked computers
    but cannot access anything on it.
    Windows 7 network diagnostics says "file and print sharing resource (JMGIMAC) is online but isn't responding to connection attempts" "The remote computer isn't responding to connections on port 445
    I've tried everything, any ideas
    Josh

    I am familiar with the instructions for sharing files and have followed them (several times I might add).
    My problem is that the information that I place in the WINS tab ( in the Network Preference Pane) disappears when the iMac is re-started. This information (especially the Workgroup name) must appear when the computer re-boots. It doesn't and I have to re-enter the information in the iMac before I can access its files from a Windows PC.
    I have searched the internet for days trying to find an answer to this question. Although the problem seems to be fairly common, no solutions have been found.

  • Microsoft Excel cannot access the file "-". There are several possible reasons. Windows Server 2008 R2 with Microsoft Office 2010

    I have a problem with starting the Excel Application under a particular user (service account).
    I try to schedule this C# script through an application X (not Windows Task Scheduler. And this
    application will always use a service account to run services on the server). If I run the C# script in
    command prompt under the same user, it runs. Under the application X, which uses the exact same
    user, to initiate the C# script, it fails to open the Excel application (not sufficient permission?).
    This script calls application.Workbooks.Open(<ExcelFileName>,0,false,Type.missing....). At this line
    of code, it gives the following error:
    Microsoft Excel cannot access the file "...". There are several possible reasons:
    -The file name or path does not exist.
    -The file is being used by another program.
    -The workbook you are trying to save has the same name as a currently open workbook.
    I tried all the methods that I found online as follow:
    Create directory "C:\Windows\SysWOW64\config\systemprofile\Desktop" (for 64 bit Windows) or "C:\Windows\System32\config\systemprofile\Desktop" (for 32 bit Windows).
    Changed the DCOM config for the Microsoft Excel application to include this user for Local/Remote Launch and Access.
    Enabled all macros in Excel application and set the Trust Center.
    Add the user to have full control on all folders that contain the Excel file.
    Under DCOM
    config, Microsoft Excel Application, if I modify the Identity tab to check on "This User" and enter the username/password to let Excel always run under that user. Then the application runs perfectly. However, other users can't run the excel application
    on their own with the following error: "Cannot use object linking and embedding". If I check "Use the launching user", then Excel can't be launched. No errors in the logs or events anywhere to check.
    Yet, still the same error. I think it's permission but I am not sure where and what to do for this to work.
    Now, normally, when I run this excel report, I can double-click on the file and it'd automatically run,
    save the new parameters into the current file and generate a new excel file (with date attached to the
    file name). That means there is a change (save) to the original file.
    Environment: Windows Server 2008 R2 and running Microsoft Excel 2010.
    I appreciate all your help!

    I am wondering if this has anything to do with having the user log into Excel.
    In point #5 above: Under DCOM config, Microsoft Excel Application, if I modify the Identity tab to check on "This User" and enter the username/password to let Excel always run under that user. Then the application runs perfectly. However, other
    users can't run the excel application on their own with the following error: "Cannot use object linking and embedding". If I check "Use the launching user", then Excel can't be launched. No errors in the logs or events anywhere to check.
    Because running with the launching user proposes an user to run the Excel application. However, I do not think there is any where that we can pass in the password for this user to Excel. However, this Excel has all the permissions to Excel application as
    well as the folders that have the Excel files.
    Please help!
    Thank you!

  • I use Djay for my Apple and I would like to use TC as an external hd to access from Djay, however when I look for my external T1 drive I cannot find it in iTunes so I can load onto Djay? Any help?

    I use Djay for my Apple and I would like to use TC as an external hd to access from Djay, however when I look for my external T1 drive I cannot find it in iTunes so I can load onto Djay? Any help?

    Initially, you asked if you can hardwire your MBA to the TC. The answer is yes, by using the optional USB Ethernet adapter that Apple provides. However, in order for your MBA to access the TC's internal or USB-attached HDD, it would need to establish a network connection to it. This would be true of any NAS device on an Ethernet network. Therein, lies the problem. Your MBA cannot connect to two networks simultaneously.
    One option then, would be to have two separate iTunes Media folders; one on the MBA & the other on the TC. This way, you can download the music to your MBA when connected to the Internet at the AirPort lounge, and then use iTunes Consolidate Library feature to transfer the audio files to the TC's iTunes Media Folder location. A great program to help maintain multiple iTunes Librarys and/or Media Folders, that you may want to consider, is PowerTunes.

Maybe you are looking for

  • Windows Defender Beta 2 Stops iTunes 6.03 From Installing Completely

    Hey, There is a bug with Windows Defender Beta 2 and iTunes. I thought I would tell apple and Microsoft about it. Check microsoft beta newsgroups. When you install iTunes 6.03 and have Windows Defender Beta 2 running it will cause iTunes setup to err

  • Spotlight not working properly in Save and Save As dialog boxes

    When I'm in any program and I go to the "Open Files" dialog box, I can use the spotlight search to search for files by name or by content, and it works fine. However in the "Save File" and "Save File As" dialog boxes, spotlight will only find folders

  • Renaming files in OS X Snow Leopard with illegal chars..

    I'm still using Leopard but want to know if the behavior of renaming files is on par of that in, gasp, Windows Vista. I was jsut doing a lot of renaming and it reminded me of the days I used to use Vista when renaming a file and using an 'illegal' ch

  • Bankdata in XL Reporter

    Hi@all where can i find the bankdatas in XL Reporter? i want to make a report to show, wich partners dont have any bankdatas. i know that it is part of the OCRD but i cant find it... please help... regards Bernhard

  • BPC - EVDRE error - values on YEAR level do not appear

    Hi everyone. I have a Time dimension with YEAR, QUARTER and MONTH level. When I do an EVDRE report and I select an especific YEAR (ex. 2011) and I set the MemberSet Expansion to SELF, it didn´t bring any value. On the other hand, when I set SELF, DEP