AttachMovie is shown on debugger but not on play

I'm using the tutorial XML photo gallery with thumbnail from http://www.kirupa.com/developer/mx2004/thumbnails.htm
I'v added code to deal when the image is not aviliable I attach a symbol with Text instead to the thumbnail and to the photo as well
the problem is when I have an image as photo and I press a symbol thumbnail it dosent attach the symbol instead of the Image.
it doesnt work at all.
my solution for that was to unloadMovie and it solved partly
thumbNail onRelease activation
  target_mc.onRelease = function() {
   if (!isdef[p] && isdef[this.pictureValue]) {
   //if the old MC is image and the wanted new MC is a symbol
    picture.unloadMovie();
   p = this.pictureValue-1;
   nextImage();
The nextimage function does the load of the picture or attachMovie for the symbol
function nextImage() {
if (p<(total-1)) {
  p++;
  if (loaded == filesize) {
   picture._alpha = 0;
   if (isdef[p]) { //use defualt symbol instead of a photo
    picture.attachMovie("mcDef", "mcDef"+p, 1000);
    picture["mcDef"+p].m_text.text = reverseString(description[p]);
    picture["mcDef"+p].ref_text.text = reverseString(description[p]);
   } else {
    picture.loadMovie(image[p], 1);
   picture.pictureValue = p;
   desc_txt.text = description[p];
   picture_num();
Nothing is show and no instance was made of the symbol and when pressing again on symbol thumbnail it then works and all is well
BUT on debugging it does work on the first time and I dont have to press twice on the symbol!
it probably caused that there was no load when attaching so veriables  loaded and filesize has no maning in the logice .
doing unload is a work around the problem does any body has an idea how to deal with this ether with the unload or better off without.
i'v attached the fla file so you can see the code
10X

the alpha is returen to 100% late on in a loop:
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
  preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
  preloader._visible = false;
  if (picture._alpha<100) {
   picture._alpha += 10;
I'v printed out the alpha and on every click on thumbnail it increments by 10 untill more then 100% thats OK
this ia the print out of list veriables:
1. the image is selected
Movie Clip: Target="_level0.picture"
Variable _level0.picture.onRelease = [function 'onRelease']
2.pressing on symbol thumbnail clears the screen after unloading the image but symbol doesn show and picture._alpha=107.999
Movie Clip: Target="_level0.picture"
Variable _level0.picture.onRelease = [function 'onRelease']
3.pressing on the thumbnail of the symbol the second time and it shows
Movie Clip: Target="_level0.picture"
Variable _level0.picture.onRelease = [function 'onRelease']
Variable _level0.picture.pictureValue = 2
Movie Clip: Target="_level0.picture.mcDef2"
Edit Text: Target="_level0.picture.mcDef2.m_text"
    variable = null,
    text = "ןיינב",
    htmlText = "ןיינב",
    html = false, textWidth = 114, textHeight = 73, maxChars = null,  etc...........
so it looks like that it didn't load the symbol on the first click even though it goes through the code that attachMovie()????
But if I run this in debbug mode codeline by codeline it loads the symbol and shows it on the first tril.
here is the printout of the run test mode:
picture.loadMovie(image[p]); <==  loading the image after clicking the image thumbnail
picture._alpha=0
picture._alpha=9.765625
picture._alpha=19.53125
picture._alpha=29.296875
picture._alpha=39.0625
picture._alpha=48.828125
picture._alpha=58.59375
picture._alpha=68.359375
picture._alpha=78.125
picture._alpha=87.890625
picture._alpha=97.65625
picture._alpha=107.421875
picture.attachMovie('mcDef', 'mcDef'+p, this.getNextHighestDepth()); <== performing the code but no symbol shows and on list veriabls it shows there is no symbol attached!!!!!!!!!!!!!!!!!
picture._alpha=0
picture._alpha=9.765625
picture._alpha=19.53125
picture._alpha=29.296875
picture._alpha=39.0625
picture._alpha=48.828125
picture._alpha=58.59375
picture._alpha=68.359375
picture._alpha=78.125
picture._alpha=87.890625
picture._alpha=97.65625
picture._alpha=107.421875
picture.attachMovie('mcDef', 'mcDef'+p, this.getNextHighestDepth()); <== pressing the second time the symbol is attached and shows
picture._alpha=0
picture._alpha=9.765625
picture._alpha=19.53125
picture._alpha=29.296875
picture._alpha=39.0625
picture._alpha=48.828125
picture._alpha=58.59375
picture._alpha=68.359375
picture._alpha=78.125
picture._alpha=87.890625
picture._alpha=97.65625
picture._alpha=107.421875
on debugger mode it attache's the symbol to the movie on the first click!!! and no problem
why isnt it doing the attachMovie after unloadMovie??????
the unloadMove is performed right after clicking the thumbnail before sending to function that does the loadMovie or attachMovie
I tried updateAfterEvent(); after unloadMovie() and it didnt help!!
running on MX2004
10X

Similar Messages

  • HT3180 My apple tv box no longer turns on, the white light constantly flashes on and off but no signal to my tv. All devices still pick up airplay but not actually playing. Restoring the box has made no difference, any clues?!

    My apple tv box no longer turns on, the white light constantly flashes on and off but no signal to my tv. All devices still pick up airplay but not actually playing. Restoring the box has made no difference, any clues?!

    Was the restore done via iTunes?
    http://support.apple.com/kb/HT4367?viewlocale=en_US&locale=en_US
    If so then you may need to take it to Apple.

  • HT4437 Air play seems to have disappeard from "the control centre" since I've downloaded iOS7. Can't find it within settings . I have air drop but not air play. Running a 32g iPad mini

    Air play is not on my iPad mini anywhere (from what I can see. Scrolled up from the bottom of screen to access control centre. Have air drop but not air play. Air play logo not seen In music. Cannot play through my altec lansing 5000 speaker system like I used to be able to before the ios7 download

    Using AirPlay on iPad
    http://support.apple.com/kb/HT4437
    AirPlay Mirroring
    http://support.apple.com/kb/HT5209
    Trouble shooting AirPlay
    http://support.apple.com/kb/TS4215

  • Script works in Script Debugger, but not a folder action - can u help?

    Hi
    I have written the following script to run as as folder action and it works fine when running it through in debug mode in Script Debugger, but as a folder action nothing happens.
    I wonder if someone could have a look and spot what the problem is.
    Thanks
    Nick
    on adding folder items to this_folder after receiving added_items
    set convertPath to "Macintosh HD:opt:local:bin:ffmpeg"
    tell application "Finder"
    set inPath to this_folder as alias
    set outPath to this_folder as alias
    set filesToConvert to (name of every item of inPath whose name extension is "m4a")
    end tell
    repeat with i from 1 to count of filesToConvert
    set fileName to removeExtension(item i of filesToConvert)
    do shell script POSIX path of convertPath & " -i " & (quoted form of ((POSIX path of inPath) & item i of filesToConvert)) & " -f mp3 -ar 44100 -ab 192k -acodec libmp3lame " & (quoted form of (POSIX path of outPath)) & quoted form of (fileName & ".mp3") & " -mapmetadata " & (quoted form of ((POSIX path of inPath) & item i of filesToConvert)) & ":" & (quoted form of (POSIX path of outPath)) & quoted form of (fileName & ".mp3")
    end repeat
    end adding folder items to
    to removeExtension(fileToParse)
    #display dialog fileToParse
    set prevTIDs to text item delimiters of AppleScript
    set text item delimiters of AppleScript to "."
    return first text item of fileToParse
    set text item delimiters of AppleScript to prevTIDs
    end removeExtension

    mmh, well, it seems something is awry with the triggering. other folder action scripts seemed to work fine, but now are intermittent.
    i created the following simple script:
    on adding folder items to this_folder after receiving added_items
    display dialog "1"
    end adding folder items to
    sometimes it works, sometimes not.
    what could be going wrong?

  • Projector sees desktop, but not DVD playing

    20" Intel-based iMac running OS X 10.5.8. Sony projector sees my desktop image, but not any of my icons on my desktop. Runs "POWERPOINT" successfully, but if I use "DVD Player" - the DVD's playing on my computer screen, but still only see desktop image on projector screen.???

    It sounds like the system is in extended desktop mode. If you want the projector to show the same image as on your primary display, you need to turn on "Mirror Displays" on the Arrangement tab of the Displays system preference.
    Hope this helps.

  • 3G: play count updated, but not last played

    I have a 3G 10GB iPod, and since updating to iTunes 7, my stats are not syncing correctly. When I play something on my iPod and then sync the stats back to iTunes, the play count field is properly adjusted, but the last played count does not. I understand why this does not occur in the Shuffle, which lacks an internal clock, but the iPod does.
    Does anyone know how to correct this problem? Everything I do is based on smart playlists, so the stats need to be correct.

    Found the problem. After my iPod didn't update after purchasing new songs, I checked my iPod options. For some reason my iTunes iPod Options changed from "Automaticaly update ..." to "Manually manage ...". Once I set this back to automatic everything updated fine.
    It is interesting that even when "Manually manage" was selected, a new Podcast trak was downloaded to the iPod and, after listening to it, the Last Played and Play Count fields were updated.
    Also, regarding my question about the Last Played update with my Shuffle, I learned that iTunes 5 implemented a change to update this field with the current date and time once the Shuffle is re-synch'd.

  • I get 5.1 sound in test, but not while playing music?? Live 24bit internal

    When I select the 5. setting in the control panel and run the test... the system plays the little bells through each speaker. But when I play music (with ANY PROGRAM) or play a game, I only get sound out of my two front speakers and my woofer. What's the problem? Anyone have a guess?shoot me an email if you must, [email protected] or add me to MSN [email protected] I would like to get this resolved if anyone has an idea.

    welcome mate! You're another stolen customer... yeap, I can tell you what happend: creative sound cards NOT WORKS with VISTA, try another one NON CREATIVE, that the short answer...

  • Newly added OAF region is shown in Worklist but not appearing in Email...

    Hi,
    We have a very serious issue in our applications. We have customized Requisition Approval workflow and in the Requisition approval notificaiton, added one extra OA Framework region attribute. The region fetches some value from a custom table and renders it. This region is perfectly alright when seen from the worklist. But the email that is sent for the same notification, the region is not appearing !
    We have checked a lot but unable to find what we are missing here. If it is a problem with the region, then it shouldn't appear in worklist too. The strange thing is that this was working (region was appearing in email) in one instance. When the same code were moved to another instance, it is not working (region is shown only in worklist). Please help me as this is very urgent for us.
    Thanks,
    Arun

    OK, there is other way to check.
    1) Take the notification framework region URL from the Workflow Mailer log ( log should be STATEMENT level)
    2) and copy / paste same URL in a web Browser ( you may login as SYSADMIN user)
    3) and see if newly added region comes?
    Just check if you bounced the iAS after apply the changes on that instance.

  • Idoc Error Message 51 is shown in sw37 but not in idoc Testing

    Hi Experts,
    I have one problem with Idoc processing, below is the scenario.
    The Idoc IDDEK12K is posting from SAP XI with NFS  file path details. The Idoc should fail if the file is not formatted properly like if it is missing the trailer record. This is happening in the IDDEK22K,
    It appears that all files are processing successfully when expected.  However, when I do a negative test (where I expect it to fail), SM37 shows that it failed yet the IDoc is still successful.  I expect to see the trigger IDoc as failed, and the WEINBQUEUE should include an entry for IDDEK12K.
    can any body tell me what could be the problem.  do i need to change the code in FM, but that FM is used by the IDDEK22K and IDOC  IDDEK22K is working fine for both + and - test.
    Any help is appreciated and rewarded.
    regards.

    HI Jegathees,
    First check in R/3 system it is delivered scucessfully or not in WE02 Tr. Code.
    If it is not reached the PI then goto tr code SM58 find is there any error information.
    And also check the SMQ1 and SMQ2 , may be it will stucked in this.
    Check the RFC destination, Port and Partner profile before sending the Idoc to the PI system.
    Regards
    Goli Sridhar

  • Gl balances shown in FS10n but not shown in F.01( Currency type:30)

    Hi gurus,
    When i run F.01,currency type :30(group currency),GL balances is not showing.But when we run FS10,the GL balances is showing in USD as well as INR.
    I have maintained OB22.
    Pl advise.
    Regards,
    Samar

    Hi gurus,
    Thanks for your reply.
    I am maintaining group currency 30 ( USD).I have maintained in OB22.Company code currency is 10 ( INR).
    In GL master(FS00),I have not ticked "only in local currency).I have kept it blank.So that the system can pick up INR as well as USD
    After maintaining all these,still GL balances is not showing in F.01.Is there any t code for said issue.
    Kindly advise.
    Regards,
    Samar

  • Values seen in logic debugger but not updating in SQL server after running

    Hi,
    I am trying to run a simple logic file, where I am reversing the sign of a few EXP accounts. I have written a similar code
    *when account
    *is account1
    *when %value%
    *is <>0
    *rec(factor=-1)
    *endwhen
    *endwhen
    Now when I run the logic debugger I am able to see the rows that will be updated. However when I run the logic file through package and look in the database the records do not get generated. What could be the reason?
    Also when I calculate an exp account through logic, the database stores +ve values in the database. Is there any other way to ensure that EXP accounts calculated thro logic are always store according to how they would be stored when sent through a schedule?
    Thanks,
    Hardik.

    Hi,
    As suggested by Jonathan in the previous post, you need a *COMMIT statement to post the calculated records into the fact tables.
    Your observation is correct regarding the accounts. The accounts with ACCTYPE as INC are stored as negative values and those of EXP are stored as positive values. This is how the BPC is setup to create records by default. It is easy to rollup the accounts to the higher level accounts, just by summing the values.
    So EXP type accounts are stored as positive values, be it sent from input schedule or posted by a DM package.
    Hope you understand.
    Karthik AJ

  • Email with attachments shown on blackberry but not on computer, while without attachment seen at both places (same sender)

    One sender sent me 3 emails, two with attachments and one without attachment. I could see all the emails on my Blackberry but I didn't see emails with attachments on my computer. thanks for the help.

    I would think this is an issue with your email provider, not the BlackBerry. What email service do you use?
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • Group email sending problem - shown as Sent but not sent

    My individual and few recipient emails work fine. Yet my group emails (50-90 recipients) emails show up in my Sent file, but the recipients do not receive them. No error messages or emails are given … the blocking is invisible. Comcast, my internet service provider, says it is a problem with the Mail program. Help.

    Hi
    I have quite a bit of experience with this, as I have been supporting the 250,000 users of our "MailShot Pro" group email app every day for several years, and I am pretty sure the problem is with Comcast.
    A number of our customers have told us that they were unable to send email to larger groups using their Comcast accounts, but as soon as they swapped to sending from a free iCloud.com or Gmail.com account, the problem disappeared. I am therefore pretty sure the problem lies with Comcast's anti-spam routines.
    One other, less-likely, possibility which I have seen myself with Yahoo, is that some mail servers may reject an entire email silently if there is one wrong email address on the same "@" domain that you are sending from.
    I hope this helps
    Peter
    Soluble Apps
    Disclosure: as the developer of MailShot Pro, I may receive a financial benefit from its sale.

  • Photo library is shown in iPod but not showing when I sync with iTuens

    Hi,
    I am using iPod touch with IOS 5.1.1 and iTuens 10.5.
    I have a library in the iPod that contains photos, I am not able to see these photos when I sync my iPod to iTunes.
    Is there is a way to move all the photo libraries safly from iPod to my laptop ?
    Thanks

    For photos/videos taken by or saved to the iPod , those in the Camera Roll album:
    iOS: Importing personal photos and videos from iOS devices to your computer
    If they were synced from a computer y need a third-party program like PhoneView or TouchCopy to copy them from the iPod to a computer.

  • Value shown in cfgridcolumn but not in cfinput

    Hi all
    I have two queries, the first one to select all information about companies from the database to show in my cfform and cfgrid and the second one to display a list of sectors that I use in a select. They both work fine.
    company.sectorid is an integer to represent a sector name and this value is "connected" to sector.sectorid where there is a column called sector.sector that has the name of the sector. 
    I can show the names of the sector in cfgridcolumn (using SECTOR).
    I can also output the sectorid (integer) in a cfinput. However, I cannot seem to output the sector (name) in the cfinput. I have tried using sector instead of sectorid in the field but to no avail. Why does it show the name correctly in the cfgridcolumn but as an integer in the cfinput? Thank you
    <!--- -QUERIES -->
    <cfquery name="qNames" datasource="sales">
        select * from COMPANY, sector
    where COMPANY.sectorid = sector.sectorid
    <cfif structKeyExists(url,"sectorID")>
    and sector.sectorid = #url.sectorid#
    </cfif>
    </cfquery>
    <CFQUERY name="sector" datasource="sales">
    SELECT sectorId, sector
    FROM sector
    ORDER BY sector
    </CFQUERY>
    <!--- OUTPUT SELECTED COLUMNS IN CFGRID--->
    <cfform format="flash" skin="haloorange">
       <cfgrid name="UsersGrid" format="flash"
             query="qNames" width="1000" rowheaders="No"
    onchange="for (var i:Number = 0; i<STATE.length; i++) {if (STATE.getItemAt([i]).data == UsersGrid.selectedItem.STATE)
    STATE.selectedIndex = i} for (var i:Number = 0; i<MEETINGTIME.length; i++) {if (MEETINGTIME.getItemAt([i]).data ==
    UsersGrid.selectedItem.MEETINGTIME) MEETINGTIME.selectedIndex = i}
    for (var i:Number = 0; i<DEPT.length; i++) {if (DEPT.getItemAt([i]).data == UsersGrid.selectedItem.DEPT)
    DEPT.selectedIndex = i}
    for (var i:Number = 0; i<CITY.length; i++) {if (CITY.getItemAt([i]).data == UsersGrid.selectedItem.CITY)
    CITY.selectedIndex = i}">
    <cfgridcolumn name="RANKING" width="50"header="Rank">
    <cfgridcolumn name="COMPANY" width="150" header="Company">
    <cfgridcolumn name="DEPARTMENT" width="150" header="Department" display="true">
    <cfgridcolumn name="FIRSTNAME" width="150" header="Contact Name">
    <cfgridcolumn name="POS" header="Position" width="160" display="true">
    <cfgridcolumn name="SECTOR" width="120" header="SECTOR" display="TRUE">
       </cfgrid>
    <!--- THE CFINPUT--->
    <cfformgroup type="tabnavigator" width="1000">
    <cfformgroup type="page" label="Details: #dateFormat(now(), 'mmm dd, yyyy')# : #qNames.RecordCount# Companies">
        <cfformgroup type="horizontal">
    <cfinput type="TEXT" name="SECTORID" label="Sector" required="yes" width="200" bind="{UsersGrid.dataProvider
    [UsersGrid.selectedIndex]['SECTORID']}" onChange="UsersGrid.dataProvider.editField(UsersGrid.selectedIndex, 'SECTORID',
    SECTORID.text);">
    </cfformgroup>

    I worked it out by making sure that all the fields in the database tables had different names, the flash can't handle the same column names in different tables. I then used cfdump to see which fields were being output and used them in my cfgrid headers. Now works fine.

Maybe you are looking for

  • Can I set the default version of DIAPI?

    I have got a problem,that is when I develop an addon via DIAPI 2005,the addon can work in SAP Business One 2005 normaly.but when I install a SAP Business One 2007 client in a other PC,though the PC installed DIAPI 2005,the addon can't work. The resea

  • HT201303 How do I reset my security questions I forgot them

    I bought iTunes account money and I have to verify my questions for te first purchase on my device and I don't remember my answers :-/

  • Unable to make a copy of the query

    Hi All, I want to make a copy of a bw query. When I try to save the query as a new query I get the following error: - An unexpected 'assertion: failed to delete old query' error occured in wdbrlog. It seems to have happened due to an SP upgrade. Plea

  • Async to Sync interfaces.

    Hi all, We have  IDOC(Async) -> SOAP (Sync) -> Proxy(Aync) interface requirement. Can anyone please suggest if it can be done without BPM?

  • How to update schema passwords in the RPD ????

    Hi All,        Please, does someone may explain me how to perfom the steps below ?  Because I am changing the password from BI Applications components. 7.2.3.1. Oracle BI Application Configuration physical connection. Update the password on each the