Help with working script that won't convert på higher version player (As2)

HI have an issue with a file that was created some time ago to Fplayer v6 and when I now “upgrade” it to 8-9 or 10 it does not load the xml links ;/
I have no idea why, the file(s) works fine in the old player 6
I have a set of xml files (note: one file for each country on a map,and the possible solution should not include to put all links in the same xml file)
the xml looks like this (example is for Denmark file called dk.xml):  [code]
<broadcast>
<story>
<lead>www.alink.com</lead>
<URL>http://www.alink.com/</URL>
</story>
</broadcast>
So in the flash file I have a set of buttons the does a few actions
one action is to call/go to a specific frame in a MC in that frame I put the Xl loading stuff for each frame (lable)
[code]
headlineXML = new XML();
headlineXML.onLoad = myLoad;
headlineXML.load("be.xml");
function myLoad(ok) {
                             if (ok == true) {
                             Publish(this.firstChild);
function Publish(HeadlineXMLNode) {
if (HeadlineXMLNode.nodeName.toUpperCase() == "BROADCAST") {
content = "";
story = HeadlineXMLNode.firstChild;
while (story != null) {
                             if (story.nodeName.toUpperCase() == "STORY") {
                             lead = "";
                             URL = "";
                             element = story.firstChild;
while (element != null) {
if (element.nodeName.toUpperCase() == "LEAD") {
lead = element.firstChild.nodeValue;
if (element.nodeName.toUpperCase() == "URL") {
                             URL = element.firstChild.nodeValue;                                                                                                                   
}                                                         element = element.nextSibling;
content += "<font size='+2' color='#3366cc'><a href='"+URL+"'>"+lead+"</a></font><br>"+body+"<br><br>";
txt.htmltext=content;
story = story.nextSibling;
the button (main stage)  that calles the MC frame lable with the xml that loads the load thex and a link into a dynamic txt box (called “txt”), has this code on it: [code]
on (press) {
                             infoon("DK");
on (rollOver) {
                             DK._alpha = 50;
on (releaseOutside, rollOut, dragOut) {
                             DK._alpha = 100;
so as said it works fine in FP 6 (as2)  but when published to FP 8 -9 or 10 only the XML does not load at all
What could be the issue (I know that it is old code and it is pretty poor and should be fully upgraded but my
skills is not on that level, I managed to make the above work from some tutorials but understanding the publishing issues
is a bit over my head J
I would be extremely gratefull if anyone could help me out it is really frustrating especially since the file actually works fine
in the old player ;/
best
OrsonB

the two most common issues when converting from as2 vp 6 to as2 vp 6+ are:
1.  failure to initialize some variable.  (if not explicitly initialized in vp 6, understood to be zero.  in vp+, it's undefined.)
2.  vp6 is not case-senstive.  vp 6+ is case- sensitive.
you have both.
body is undefined and htmltext is not the same as htmlText.  fix those and retest.

Similar Messages

  • Help with PS script that gets run when an event ID is triggered.

    Hello,
    I've had some great help from Mike Laughlin on this forum on creating a simple PS script that can email me when a particular event id is seen on a server.
    Here it is:
    $serverName = $env:COMPUTERNAME
    Send-MailMessage -to [email protected] -Subject "$serverName - Low on Virtual Memory" -body "$serverName
    - low on virtual memory" -smtpserver smtp.gb.local -from [email protected]
    What I want to add is the event id to in the email too so we can get more information, is this possible?

    Here are some suggestions:
    Here is a defined trigger for security event ID 5156.  It is good for learning because it happens frequently.
    <Triggers>
    <EventTrigger>
    <Enabled>true</Enabled>
    <Subscription>&lt;QueryList&gt;&lt;Query Id="0" Path="Security"&gt;&lt;Select Path="Security"&gt;*[System[Provider[@Name='Microsoft-Windows-Security-Auditing'] and EventID=5156]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription>
    <ValueQueries>
    <Value name="Application">Event/EventData/Data[@Name='Application']</Value>
    <Value name="DestAddress">Event/EventData/Data[@Name='DestAddress']</Value>
    <Value name="DestPort">Event/EventData/Data[@Name='DestPort']</Value>
    <Value name="SourceAddress">Event/EventData/Data[@Name='SourceAddress']</Value>
    <Value name="SourcePort">Event/EventData/Data[@Name='SourcePort']</Value>
    <Value name="TimeCreated">Event/System/TimeCreated/@SystemTime</Value>
    </ValueQueries>
    </EventTrigger>
    </Triggers>
    The ValueQuery defines the path to the values in the event data.
    Here is how we pass the data to the command usingnamed parameters:
    <Actions Context="Author">
    <Exec>
    <Command>powershell</Command>
    <Arguments>
    -file test5156.ps1
    -Application $(Application)
    -SourceAddress $(SourceAddress)
    -SourcePort $(SourcePort)
    -DestAddress $(DestAddress)
    -DestPort $(DestPort)
    -TimeCreated $(TimeCreated)
    </Arguments>
    <WorkingDirectory>c:\test</WorkingDirectory>
    </Exec>
    </Actions>
    Notice that I do NOT use single quotes and have formatted the XML so it is easy to edit.
    The line breaks are not preserved by the XML when passed and the extra space is unimportant.
    Here is the test script that displays the passed arguments.
    Param(
    $Application,
    $SourceAddress,
    $SourcePort,
    $DestAddress,
    $DestPort,
    $TimeCreated
    '[{0:hh:mm:ss}] {1}' -f [datetime]::Now,'New Event 5156' | Out-file c:\test\testel.log -append
    $p=@{
    Application=$Application
    SourceAddress=$SourceAddress
    SourcePort=$SourcePort
    DestAddress=$DestAddress
    DestPort=$DestPort
    TimeCreated=$TimeCreated
    $parms=New-Object PsObject -Property $P
    $parms |Format-List |Out-String | Out-file c:\test\testel.log -append
    Each event ID can have very different data structures  thei si what the 5256 class o structures looks like:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-A5BA-3E3B0328C30D}" />
    <EventID>5156</EventID>
    <Version>1</Version>
    <Level>0</Level>
    <Task>12810</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8020000000000000</Keywords>
    <TimeCreated SystemTime="2015-03-18T16:51:12.152331100Z" />
    <EventRecordID>34783304</EventRecordID>
    <Correlation />
    <Execution ProcessID="4" ThreadID="3656" />
    <Channel>Security</Channel>
    <Computer>W8Test</Computer>
    <Security />
    </System>
    <EventData>
    <Data Name="ProcessID">2608</Data>
    <Data Name="Application">\device\harddiskvolume4\windows\system32\svchost.exe</Data>
    <Data Name="Direction">%%14592</Data>
    <Data Name="SourceAddress">239.255.255.250</Data>
    <Data Name="SourcePort">1900</Data>
    <Data Name="DestAddress">192.168.1.106</Data>
    <Data Name="DestPort">2232</Data>
    <Data Name="Protocol">17</Data>
    <Data Name="FilterRTID">275543</Data>
    <Data Name="LayerName">%%14610</Data>
    <Data Name="LayerRTID">44</Data>
    <Data Name="RemoteUserID">S-1-0-0</Data>
    <Data Name="RemoteMachineID">S-1-0-0</Data>
    </EventData>
    </Event>
    Note how the mappingis done from event data name and argument then to PowerSHell Parameter name.
    EVENT DATA: <Data Name="SourceAddress">239.255.255.250</Data>
    ValueQuery:   <Value name="SourceAddress">Event/EventData/Data[@Name=SourceAddress]</Value>
    TRIGGER COMMAND:
           <Arguments>
                 -file test5156.ps1
                 -SourceAddress $(SourceAddress) 
    SCRIPT PARAMS:
         Param(
             $SourceAddress,
    ¯\_(ツ)_/¯

  • Help with bash script that fails after suspend to RAM

    I have a very simple reminder script that uses an endless loop, sleep and zenity to pop up a reminder every twenty minutes:
    #!/bin/bash
    while true;
    do
    sleep 20m
    zenity --warning --title="Ergonomics Reminder" --text="Check Posture or Have a Stretch!"
    done
    However, it does not work as it should after suspending to RAM. I am thinking I need to kill the process and restart it after every suspend, using a "thaw" notice in /etc/pm but if there is an easier way to do it please let me know!

    I'm doing this for 2 reasons:
    - as a scripting exercise
    - because the local repo is a shared wordpress mess and people forget to make commits so I'd like a local backup that includes all changes that may not be in github (sadly).
    Anyhow, thanks for the input about trap, I'm definitely confused by it's use at this point but have reworked the script without it.
    #!/bin/sh
    set -e #Exit on any error.
    TIME=`date +"%m.%d.%Y@%H:%M:%S"` # Define the TIME variable as today's date and time.
    MONTH=`date +"%b"` # Define MONTH as today's month.
    FILENAME="backup-$TIME.tar.gz" # Define the filename structure.
    SRCDIR="/stuff" # Define folder to backup.
    DESDIR="/Backup/$MONTH/" # Define the backup folder location.
    LOGFILE="$DESDIR/backup-$TIME.log" # Store the output in a log.
    REMOTE=$(git ls-remote -h origin master | awk '{print $1}') # Get commit hash from head of remote master repo (github)
    LOCAL=$(git rev-parse HEAD) # Get commit hash from head of server repo (dev/test)
    if [[ $LOCAL == $REMOTE ]]; then # If the hashes match
    echo "No update required." >> $LOGFILE # Then no pull is needed
    else # If the hashes don't match then prepare to run our backup
    mkdir -p $DESDIR # Create our directory if it doesn't exist.
    echo "Backup started for "$TIME >> $LOGFILE # Make it log what it's doing.
    tar -cpzf $DESDIR/$FILENAME $SRCDIR >> $LOGFILE 2>&1 # Perform the backup.
    echo "Backup Finished for "$TIME >> $LOGFILE # Log that it's finished.
    echo "Preparing for git pull " >> $LOGFILE #Log what we're doing.
    cd /stuff >> $LOGFILE 2>&1 # Make sure we're in our repo directory
    git pull >> $LOGFILE 2>&1
    echo "Git pull completed successfully. " >> $LOGFILE
    mail -s "Backup log `date`" [email protected] < $LOGFILE # Email the output to me.
    fi

  • PR - PO, Help with a PR that is partially converted to PO (left over QTY)!

    Hi,
    My current program finds all open PR's (found where EBAN-STATU = 'N') and deletes them. 
    However, say that a PR (all PR's are in UOM EA) is converted to a PO (all PO's are in UOM CSE.) When converted, what if some of the quantity is left over?
    For example, a PR has a line item with a quantity of 12. However, a CSE can only hold 10. In turn, 2 of the quantity will be left over.
    Will they be recognized as open PR's when the next batch of PR's are deleted? How do I test out such a scenario (where can i find such a PR, convert it and see what happens to the left over quantity)?
    All Good responses will be rewarded.
    Thanks,
    John

    Hi
    For Individual PR status
    You can check it in ME53n Status tab processing status might be there. And if any processing has been done like RFQ, PO... it will be displayed in this tab.
    For collective PR status
    You can check it in ME5A
    Regards,
    Raman

  • Need help with .mov files that won't open

    Here's the situation...
    I have 2 dvdr's with 4 .mov files on them. when i try to copy them to my desktop it tells me that
    "the finder cannot complete the operation because some data in "BonJovi_Who_SaysDV NTSC.mov" could not be read or written. (Error code -36)
    I have to gain access to these .mov files tonight or I'm gonna be a real shithead. I just got the discs fedex'd to me today so I didn't put it off til the last minute. Can anyone offer any possible solutions? If so, please help.
    Java

    Putting aside copyright issues in (naive?) belief you have a legitimate use of the material, your problem lies in the file or disk. One of them is either corrupt or not compatible with the drive you are trying to read it on. Try it on another computer (even a PC) and if you can read it on that computer make a new copy of the file on a new disk or a firewire drive (or USB stick if it fits).

  • HT201210 help with iPod touch that won't restore

    trying to restore a not-so-new iPod Touch that is frozen.  When I do this in iTunes I get an error message that says it can't restore because "device isn't eligible for the requested build".  Anything else I can do?

    This device is not eligible for the requested build (Also sometimes displayed as an "error 3194")
    Update to the latest version of iTunes. Mac OS X 10.5.8 (Leopard) users may need to download iTunes 10.6.3.
    Third-party security software or router security settings can also cause this issue. To resolve this, followTroubleshooting security software issues.
    Downgrading to a previous version of iOS is not supported. If you have installed software to performunauthorized modifications to your iOS device, that software may have redirected connections to the update server (gs.apple.com) within the Hosts file. Uninstall the unauthorized modification software from the computer.
    Edit out the "gs.apple.com" redirect from your hosts file, and then restart the computer for the host file changes to take affect. For steps to edit the Hosts file and allow iTunes to communicate with the update server, see iTunes: Troubleshooting iTunes Store on your computer, iPhone, iPad, or iPod—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > The hosts file may also be blocking the iTunes Store. If you do not uninstall the unauthorized modification software prior to editing the hosts file, that software may automatically modify the hosts file again on restart.
    Avoid using an older or modified .ipsw file. Try moving the current .ipsw file (see Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations), or try restoring in a new user to ensure that iTunes downloads a new .ipsw.

  • Need help with an app that won't finish downloading to my iPhone 5s

    This app will neither finish downloading, nor will it delete. The app is called Google Translate. please help me. Thank you all in advance.

    Did you already try to reset the phone by holding the sleep and home button for about 10sec, until the Appel logo comes back again? You will not lose data by resetting, but it can cure some glitches.

  • HT5622 I need help with my MasterCard it won't work

    Need help with my MasterCard it won't work

    If it's a debit card then I don't think that they are still accepted as a valid payment method - they are not listed on this page and there have been a number of posts recently about them being declined
    If it is a credit card then is it registered to exactly the same name and address (including format and spacing etc) that you have on your iTunes account, it was issued by a bank in your country and you are currently in that country ? If it is then you could check with the card issuer to see if it's them that are declining it, and if not then try contacting iTunes support and see if they know why it's being declined :http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • Something conflicting with Adobe Flash that won't allow email attachments in gmail

    Something conflicting with Adobe Flash that won't allow email attachments in gmail
    I have been speaking with senior techs in the google forum, and they suggested I post here.  There is something about my computer settings or security software is  conflicting with Adobe Flash.
    I did a clean install of both Flash 10 and Firefox 3.5.7 (I uninstalled the previous versions).
    The problem is with gmail.  I get the error message when  attaching files:
    "Attachment failed. This may be due to a proxy or  firewall."
    Any ideas???
    Using Firefox 3.5.7
    Using MAC  OS 10.4.11
    Using Flash 10
    I do not have security software, proxy or firewall settings.
    I started a question in these forums:
    http://www.google.com/support/forum/p/gmail/thread?fid=791ff1130e2fc23100047e95d237082a&hl =en
    http://support.mozilla.com/en-US/forum/1/554629?

    So if your not using a Flash app, not running a flash program, and you are using a browser on a remote mailserver, why would you think Flash is the issue?
    Secondly if you are not using the Flash CS3/4 program somewhere in the loop, than you would be better served in the Flash Player forum, this is a Flash Developers forum. Sounds more like gmail may use some flash components to display something, but should not have an effect on file transfer unless your Flash settings deny it. You have to allow local content from being run with active x/flash.
    http://forums.adobe.com/community/webplayers/flash_player
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l

  • When I watch tv shows in Front Row that I've bought off iTunes the audio gradually falls out of sync with the video. It does not happen with other files that I have converted into mp4s. Any ideas for fixing this? It's a huge bummer...

    When I watch tv shows in Front Row that I've bought off iTunes the audio gradually falls out of sync with the video. It does not happen with other files that I have converted into mp4s. Any ideas for fixing this? It's a huge bummer...

    I too have the same problem.  The audio drop out of sync in about 5 sec in not uncommon for the audio to be 30+ sec behind video.  Apple needs to fix this!!!!!!!!!!!!!!!!   its a joke,  my iphone is all messed up after the last update as well.  at one time not to long ago apple products and software were top rated, not so much any more, more and more problems are showing up and apple is unwilling or unalbe to fix the many issues.  Apple needs to fix the audio sync problem, it not the computer hardware or other software it ITUNES!!!!,  there is no workaround other then hitting pause and hitting pause and hitting pause to temp fix the problem. 

  • Hi can anyone help with a mac that had magnet put on it. I turned it on and then off but a white screen appears with a file with a question mark on it?

    Hi can anyone help with a mac that had magnet put on it. I turned it on and then off but a white screen appears with a file with a question mark on it?

    File icon with ? mark on it means it can't read from the hard drive. The hard drive is now wiped or bad. If just wiped then you will need to reinstall your operating system, OS X. If bad you will need to replace the drive.
    Start with booting the computer from the OS X install DVD that came with your system. If the Mac came with Lion Pre-Installed then you use the Lion internet recovery system to reinstall (Hold down Command+r keys or Command+Option+r keys to boot the computer from over the internet to the Lion recovery HD system).
    Good Luck.

  • How can I get help with pending songs that have taken over 12 hours to fully download?

    How can I get help with pending songs that have taken over 12 hours to fully download?

    You can only suspend service for 3 months at a time (with or without payment) and only twice a year.

  • Need help with WMI code that will send output to db

    'm new to WMI code writing, so I need some help with writing code that we can store on our server. I want this code to run when a user logs into their computer
    and talks to our server. I also want the code to:
    * check the users computer and find all installed patches
    * the date the patches were installed
    * the serial number of the users computer
    * the computer name, os version, last boot up time, and mac address
    and then have all this output to a database file. At the command prompt I've tried:
    wmic qfe get description, hotfixid
    This does return the patch information I'm looking for, but how do I combine that line of code with:
    wmic os get version, csname, serialnumber, lastbootuptime
    and
    wmic nicconfig get macaddress
    and then get all this to output to a database file?

    Thank you for the links. I checked out http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx and
    found lots of good information. I also found a good command that will print information to a text file.
    Basically what I'm trying to do is retrieve a list of all installed updates (Windows updates and 3rd party updates). I do like that the below code because it gives me the KB numbers for the Windows updates. I need this information so my IT co-workers &
    I can keep track of which of our user computers need a patch/update installed and preferably which patch/update. The minimum we want to know is which patches / updates have been installed on which computer. If you wondering why we don't have Windows automatic
    updates enable, that's because we are not allowed to.   
    This is my code so far. 
    #if you want the computer name, use this command
    get-content env:computername
    $computer = get-content env:computername
    #list of installed patches
    Get-Hotfix -ComputerName $computer#create a text file listing this information
    Get-Hotfix > 'C:\users\little e\Documents\WMI help\PowerShell\printOutPatchList.txt'
    I know you don't want to tell me the code that will print this out to a database (regardless if it's Access or SQL), and that's find. But maybe you can tell me this. Is it possible to have the results of this sent to a database file or do I need to go into
    SQL and write code for SQL to go out and grab the data from an Excel file or txt file? If I'm understanding this stuff so far, then I suspect that it can be done both ways, but the code needs to be written correctly for this to happen. If it's true, then which
    way is best (code in PowerShell to send information to SQL or SQL go get the information from the text file or Excel file)?

  • I need help writing a script that finds the first instance of a paragraph style and then changes it

    I need help writing a script that finds the first instance of a paragraph style and then changes it to another paragraph style.  I don't necessarily need someone to write the whole thing, by biggest problem is figuring how to find just the first instance of the paragraph style.  Any help would be greatly appreciated, thanks!

    Hi,
    Do you mean first instance of the paragraph style
    - in a chosen story;
    - on some chosen page in every text frames, looking from its top to the bottom;
    - in a entire document, looking from its beginning to the end, including hidden layers, master pages, footnotes etc...?
    If story...
    You could set app.findTextPreferences.appliedParagraphStyle to your "Style".
    Story.findText() gives an array of matches. 1st array's element is a 1st occurence.
    so:
    Story.findText()[0].appliedParagraphStyle = Style_1;
    //==> this will change a paraStyle of 1st occurence of story to "Style_1".
    If other cases...
    You would need to be more accurate.
    rgds

  • HT1772 I have an iBook with Dual USB that won't fully turn on. it flashes a "?" and the Mac face symbol in a folder i the middle of the screen. How can I trouble shoot?

    I have an iBook with Dual USB that won't fully turn on. it flashes a "?" and the Mac face symbol in a folder i the middle of the screen. How can I trouble shoot?

    Restart with the Option key held down and see if the internal drive appears.
    If it does, click on it, press Enter, and then change the setting in the Startup Disk pane of System Preferences or the Startup Disk control panel.
    If it doesn't, insert a Mac OS install CD or DVD and use the Disk Utility or Disk First Aid to repair the internal drive. If there aren't any problems, install an OS onto it.
    (86157)

Maybe you are looking for

  • What can I do now?

    I know, I know: I should have BACKED UP! Here's the letter I wrote to Apple today: I am very, very disappointed with Apple, after being an Mac user for over 10 years! I just received a phone call from the Apple Store at Sherway Gardens, here in Toron

  • Joining 3 tables based on the Value from 1 Table

    Dear Oracle Guru's I have a Table called Resourcemaster , which stores the details of Resources for the project , The Resources can be of 2 types either our own employees as well as Hired Developers from other consultancies. The following is the prop

  • How to merge two columns in WAD(column chart)

    Dear Experts, Please provide your valuable suggestion to get a merge two columns in one column WAD column chart. Example: we are having 3 fields (Budgeted value, Actual budgeted value & non budgeted value). In the chart to be shown, budgeted value in

  • My ipod touch is not cooperating with my wi-fi network.

    i have an ipod touch 32gb. lately, it won't work with my wifi network... i have tried everything: restarting my ipod, updating it to the newest version, restarting network setting, re-entering the network key for my wifi... EVERYTHING. i typed in the

  • No sound comes out even though I see it moving the meters.

    I hear no sound when playing existing songs or my guitar even though I see it moving the meters. And I can hear sound fine when I pay iTunes songs. What has been muted?