Please help on how to use variables inside a method call

Hello guys,
How's it goin?
Pardon me if you find my question silly, but I am relatively
new in ActionScript 2.0 programming.
I have here a simple problem. It seems I can't use a variable
inside a method call of an object. Here's the code. Please note of
the authParams string variable below.
import AkamaiConnection;
import mx.services.WebService;
var GeneratedToken:String;
var authParams:String;
// Create a Web Service object
var TokGenService:WebService = new WebService("
http://webservice.asmx?wsdl");
// Call the web service method
var myToken:Object = TokGenService.GenerateToken();
// Create an AkamaiConnection object
var connection:AkamaiConnection = new AkamaiConnection();
connection.addEventListener("onConnect", this);
connection.addEventListener("onError", this);
// If you get a result from the web service, save the result
in a variable
myToken.onResult = function(result)
// If you get a result from the web service, save the result
in a variable
myToken.onResult = function(result)
GeneratedToken = result;
authParams = GeneratedToken +
"&aifp=v001&slist=37414/test/Streaming/";
//Call the Connect method of the AkamaiConnection class
connection.connect("cp37414.edgefcs.net/ondemand",true,true,5,true,false,"443","rtmpt",
authParams);
But then, if I use a hard-coded string value in lieu of the
variable, the method call works!
connection.connect("cp37414.edgefcs.net/ondemand",true,true,5,true,false,"443","rtmpt",
"testStringvalue");
I don't know what I'm missing or what I'm doing wrong... Can
somebody help me please? I am using a 30-day trial version of Adobe
Flash CS3. Also, when I Trace output the variables, the values are
there. It just that they can't be read or recognize inside the
method call. Is this a ActionScript limitation?
Thanks so much in advance!

The result param is a returned, “Decoded ActionScript
object version of the XML”. I am not exactly sure what that
means but I have had issues of returned XML values and their
datatype. When I did have these issues I had to cast or convert
into the desired datatype. Try one of the following, assuming the
problem is related to the code that you have bolded.
GeneratedToken = result.toString();
authParams = GeneratedToken +
"&aifp=v001&slist=37414/test/Streaming/";
Or
GeneratedToken = String(result);
authParams = GeneratedToken +
"&aifp=v001&slist=37414/test/Streaming/";
Or
GeneratedToken = result.toString();
authParams = String(GeneratedToken +
"&aifp=v001&slist=37414/test/Streaming/");

Similar Messages

  • Please help! How to use a 2.3mb pic and change it to either 100x100 pix or

    I have read a few posts but it isn't exactly what my problem is.
    I have a 2.3mb (size2304x3072) pic of me on iPhoto (6.0.6) and I have joined a motorcycle forum that I would like to post a profile picture to but this is the note that is stated under the "browse" function when I am about to upload my pic Note: The maximum size of your custom image is 100 by 100 pixels or 50.0 KB (whichever is smaller).
    So I did what I have read many times here and used "Export..." under the "File" menu and then a window opens with the tabs, "Facebook" "File Export" "Web Page" "Quicktime" ( I have uploaded pics to facebook and usually I size them by using "share" in Mail and basically choose from the 3 types of qualities but I don't think this is the proper way to do it) Anyway I then open the "File Export" tab and am left with putting in the width and height(the height automatically changes when I put numbers into the width part) sorry for the long question here. So basically I want to know how I can take my pic and change it 80x80 pixels or 100x100 pixels or change it to a 50kb pic (if I make it 50kb will the pixel dimensions change accordingly and vice versa?)Thank you, Karl

    By emailing the photo to yourself from within iPhoto, you can get a choice of four different sizes (small, medium, large and original). Whichever one is closest to the size you're looking for, you can use that option and, when you receive the email message, save the attached image. But that's certainly not an elegant solution, never mind an exact one. In short, neither that method nor the Export command allows you to specify both a resolution and a file size in KB or MB. There are many other photo editing applications that offer better control over those attributes than iPhoto does. I recommend that you simply export copies of your pictures from iPhoto at original size, then open them in a different program and fine-tune the resolution and JPEG compression settings to achieve whatever combination of resolution and file size you need.
    Message was edited by: eww

  • Please help me how to fix the yahoo messenger video call camera was not working have a line appear color green

    My new iPad air is not working the yahoo messenger video call pls help thanks

    Hello Evaorange
    If you are having an issue with the app downloaded form the App Store, check out the general troubleshooting article below to resolve the issue. If the camera is not working in that app, check other apps to see if the camera is working besides in that app.
    iOS: Troubleshooting apps purchased from the App Store
    http://support.apple.com/kb/ts1702
    Regards,
    -Norm G.

  • HEY, i have some issue i am using macbook air i5...the problem is that without doing anything 1.5gb of ram out of 2gb always in use ..please help me how to make it normal.

    HEY, i have some issue i am using macbook air i5...the problem is that without doing anything 1.5gb of ram out of 2gb always in use ..please help me how to make it normal....
    and my battery back up is max 3 to 3.5 hours in normal use with web ....is this normal or need some betterment!!!!

    ADEEL UR REHMAN wrote:
    ...the problem is that without doing anything 1.5gb of ram out of 2gb always in use
    No computer can do a thing without using memory. 1.5 GB is very little. It's normal.
    3 or so hours from a full charge may also be normal, for what you are doing. As batteries age, they don't last as long on a full charge as they did when they were new. All batteries eventually wear out, and are easily replaceable.

  • Hi please help me how can I use my iPhone 4 I am at vocation my is not working please help

    Hi I am at vocation at Italy I am not able to use my phone please help me how can I use my phone overseas thank u

    You need to make your own ringtones in iTunes then sync them to your phone. Follow the directions here:
    http://osxdaily.com/2010/09/04/make-free-iphone-ringtones-in-itunes-10/

  • I am using Mandriva Linux now and I have installed Firefox 6 but I could not install Java plugin with it. Can anyone please help me how to install it?

    I am using Mandriva Linux now.
    But I am using Firefox 3.6.8, but I cannot install java plugin in it.
    Can anyone please help me how to install it?

    The plugins folder in the Firefox installation folder doesn't exist by default. There is no default plugin in Firefox 4, so that folder would be empty and in thus not included. If you want to use that location then you need to create a plugins folder.
    Did you try /usr/lib/mozilla/plugins ?

  • I have a problem with iphone4 I bought a used and unlocked iphone4 old apple id because the first owner dies please help me how to activate iphone4 I unlocked with icloud

    I have a problem with iphone4
    I bought a used and unlocked iphone4
    old apple id because the first owner dies
    please help me how to activate iphone4
    I unlocked with icloud

    fherly nur arief wrote:
    I unlocked with icloud
    If you had already removed the device from 'Find My iPhone' in iCloud, then you jus tneed to powercycle the device in order to activate it.
    Source: http://support.apple.com/kb/TS4515
    "After the device is removed from the previous owner’s account, turn the device off by pressing and holding the Sleep/Wake button located on the top-right side of the device. Then restart your device and proceed with device setup as you would normally."
    If it has not been removed, then the activation lock is still active.
    If the previous owner cannot remove the device from their account there is nothing you can do unless the place you purchased it from will give you a refund.
    Activation Lock: http://support.apple.com/kb/ht5818
    What if I purchase a device that is still linked to the previous owner's account?
    Contact the previous owner as soon as possible and ask them to erase the device and remove it from their account. For complete instructions, read how to remove a device from a previous owner's account.
    How do I check for Activation Lock before purchasing a used device?
    When purchasing an iPhone, iPad, or iPod touch from someone other than Apple or an authorized Apple reseller, it is up to you to ensure that the device has been erased and is no longer linked to the previous owner’s account.
    Follow each of these steps to make sure that you can use the device you purchase:
    Turn the device on and slide to unlock.If the passcode lock screen or the home screen appears, the device has not been erased. Ask the seller to completely erase the device by going to Settings > General > Reset > Erase All Content and Settings. Do not take ownership of any used iPhone, iPad, or iPod touch until it has been erased.
    Begin the device setup process.After choosing a language, choosing a country, and connecting to a network, the device will begin activation. If you are asked for the previous owner’s Apple ID and password, the device is still linked to their account. Hand the device back to the seller and ask them to enter their password. If the previous owner is not present, they can remove the device from their account by signing in to icloud.com/find. Do not take ownership of any used iPhone, iPad, or iPod touch until it has been removed from the previous owner’s account.
    You will know that a device is ready for you to use when you are asked to “Set up your iPhone", “Set up your iPad", or “Set up your iPod” during the device setup process.

  • Accidentally i have deleted the Safari, please help me how to reinstall it back, I'm using MacBookAir - MAC OS X - Version 10.5.8 Thanks

    Accidentally i have deleted the Safari, please help me how to reinstall it back, I'm using MacBookAir - MAC OS X - Version 10.5.8
    Thanks
    Dimitris

    It would appear that your system is somewhat mangled, and it is time for some general 'servicing'.
    Start here:
    Repairing permissions is important, and should always be carried out both before and after any software installation or update.
    Go to Disk Utility (this is in your Utilities Folder in your Application folder) and click on the icon of your hard disk (not the one with all the numbers).
    In First Aid, click on Repair Permissions.
    This only takes a minute or two in Tiger, but much longer in Leopard.
    Background information here:
    http://support.apple.com/kb/HT1452?viewlocale=en_US
    and here:
    http://docs.info.apple.com/article.html?artnum=302672
    An article on troubleshooting Permissions can be found here:
    http://support.apple.com/kb/HT2963
    By the way, you can ignore any messages about SUID or ACL file permissions, as explained here:
    http://support.apple.com/kb/TS1448?viewlocale=en_US
    If you were having any serious problems with your Mac you might as well complete the exercise by repairing your hard disk as well. You cannot do this from the same start-up disk. Reboot from your install disk (holding down the C key). Once it opens, select your language, and then go to Disk Utility from the Utilities menu. Select your hard disk as before and click Repair.
    Once that is complete reboot again from your usual start-up disk.
    More useful reading here:
    Resolve startup issues and perform disk maintenance with Disk Utility and fsck
    http://support.apple.com/kb/TS1417?viewlocale=en_US
    For a full description of how to resolve Disk, Permission and Cache Corruption, you should read this FAQ from the X Lab:
    http://www.thexlab.com/faqs/repairprocess.html
    Reboot your Mac and then perform a Safe Boot:
    Mac OS X: What is Safe Boot, Safe Mode?
    http://support.apple.com/kb/HT1455
    Now try downloading and installing again.

  • Can you please help me how resolved this issue.

    Hi Experts
    I am trying to connect LDAP by R/3 system. R/3 system connected to LDAP but when I am trying to find and pull the fileds in the "Find in the Directolry" option I am getting below error.
    LDAPRC 010 another server is referenced.
    Can you please help me how resolved this issue.
    With Regards,
    Trinadh Bokka

    You may be able to solve by using
    Note 1151329 - Depth of LDAP search is only one level below the base entry
    Markus

  • Please help me how to check a material does existed group code in system (w

    Hi all,
    Please help me...
    I have inputted quantity for  tx MC 94  but when I input them into  tx MC94, I met  a message " Structure  not yet maintained for  this conbination characterstics". Step by step to show a error message as below:
    Step 1: Launch MC 94
    step 2: Enter Planning
    Step 3: Enter  Prod.Code. Material (ex: enter material code :0101010260008, this code is existed  Prod.Code )
    Step 4: Click on "Inactive Version " button
    ==> A error message is showed.
    Please help me how to check a material does existed group code in system (which table to  check  it)?
    How to record the message" Structure  not yet maintained for  this conbination characterstics" to catch up it in my program?
    Thank in advance.

    Karenloria,
    1. Check in MC8C, which Infostructure is used for Planning type "Planning" or the one you are entering in the intial screen of MC94.
    2. Using transaction MC63 for the infostructure identified in step 1, check the planning hierarchy maintained. If this product is not maintined maintain using MC62.
    You can also check using SE16 transction the current infostructe records(Plan) for the table name = infostructure identified in step 1.
    Regards,
    Prasobh

  • I am a OS10.7.4 user. yesterday i bought a Lacie external hard disk but error message appear said " You cant open the applicant LaCie setup assistant because PowerPC applicants are no longer support". please help me how to connect my mac with Lacie??

    i am a OS10.7.4 user. yesterday i bought a Lacie external hard disk but error message appear said " You cant open the applicant LaCie setup assistant because PowerPC applicants are no longer support". please help me how to connect my mac with Lacie??

    You do not need the Setup Assistant; in fact, you do not need any software on an external hard drive. I have two LaCie's; I erased the drive as soon as I plugged it in. You will need to format it anyway because most hard drives come Windows formatted. So, if you only want to use it with the Mac, highlight it in Disk Utility and choose Mac OS Extended (Journaled) as the format and the GUID Partition scheme under Options. While doing that, it will erase the drive (and get rid of the LaCie software) - once finished, your drive is ready to use for Time Machine or any other backup plans you have for it.

  • Please  Help me How write the BDC program for the MIGO inbound Delivery

    Please help me how to write bdc program for the MIGO Inbound Delivery in 4.7EE Version. Please help me.
    Not in LSMW.  Required call transaction or Session Method. Please help me.
    Mohan

    Run transaction BAPI . Select Logistics Execution/Shipping/InboundDelivery/SaveReplica.. You can use function module BAPI_INB_DELIVERY_SAVEREPLICA in your ABAP program.

  • I've installed windows 7 with the help of bootcamp on my macbook pro 2011. Please help me how to install mac drivers for windows7 64 bit???

    I've installed windows 7 with the help of bootcamp on my macbook pro 2011.
    Please help me how to install mac drivers for windows7 64 bit???

    You either download drivers from within Boot Camp Assistant and save to USB FAT disk, or you insert and use 10.6.x OS X DVD when in Windows and install and run the SETUP from there.
    General Help:
    Boot Camp 4.0, OS X Lion: Frequently asked question
    http://support.apple.com/kb/HT4818
    http://manuals.info.apple.com/en_US/boot_camp_install-setup_10.7.pdf
    create a Windows support software (drivers) CD or USB storage media
    http://support.apple.com/kb/HT4407
    Installation Guide   Instructions for all features and settings.
    Boot Camp 4.0 FAQ   Get answers to commonly asked Boot Camp questions.
    Windows 7 FAQ   Answers to commonly asked Windows 7 questions.
    - support articles and tips, how to.
    http://www.apple.com/support/bootcamp/
    Macs that work with 64-bit editions of Microsoft Windows Vista and Windows 7
    http://support.apple.com/kb/HT1846
    Step 4: Install the Boot Camp Drivers for Windows
    After installing Windows, install Mac-specific drivers and other software for Windows using your Mac OS X installation disc.  The Mac OS X disc installs drivers to support Mac components, including AirPort,built-in iSight camera, the Apple Remote, the trackpad on a portable Mac, and thefunction keys on an Apple keyboard. 
    The Mac OS X disc also installs the Boot Camp control panel for Windows and theApple Boot Camp system tray item.
    To install the Boot Camp drivers:
    1 Eject the Windows installation disc.
    2 Insert the Mac OS X disc.  If the installer doesn’t start automatically, browse the disc using Windows Explorerand double-click the setup.exe file in the Boot Camp directory.
    3 Follow the onscreen instructions.
    If a message appears that says the software you’re installing has not passed Windows  Logo testing, click Continue Anyway.
    Windows that appear only briefly during the installation don’t require your input.
    If nothing appears to be happening, there may be a hidden window that you mustrespond to. Check the taskbar and look behind open windows.
    Important: Do not click the Cancel button in any of the installer dialogs.
    4 After your computer restarts, follow the instructions in the Found New Hardware  Wizard to update your software drivers (Windows XP only).
    5 Follow the instructions for any other wizards that appear.
    6 Check for updated Boot Camp drivers by using Apple Software Update or going to www.apple.com/support/bootcamp.
      If You Have Problems Installing the Device Drivers 
    If it appears that the Boot Camp drivers weren’t successfully installed, try repairing them.
    To repair Boot Camp drivers:
    1 Start up your computer in Windows.
    2 Insert your Mac OS X installation disc.
    3 If the installer doesn’t start automatically, browse the disc using Windows Explorerand double-click the setup.exe file in the Boot Camp directory.
    4 Click Repair and follow the onscreen instructions.
    If a message appears that says the software you’re installing has not passed Windows  Logo testing, click Continue Anyway. 
    If you need to reinstall specific drivers, you can install one driver at a time. For example,if your built-in iSight camera isn’t working, you can reinstall just the iSight driver.
    Individual drivers are in the Drivers folder on the Mac OS X installation disc.

  • I bought CS6 creative suite. As of now i need to work each application in separate separate system. Can any one please help me how to solve this problem.

    I bought CS6 creative suite. As of now i need to work each application in separate separate system. Can any one please help me how to solve this problem.
    I saw the below quote on Adobe forum
    "You may install software on up to two computers. These two computers can be Windows, Mac OS, or one each."
    If i install each application in single single system the system count is more than two. In this case, are we have any license issue? Please advice how the problem will solve?
    If possible please send the advise to my mail id: <Removed by Moderator>
    Thanks
    Uvaraj S

    I already answered that.  If you purchased a Suite then you can only install and activate it on two machines.  Even if you only insdtall one of the applications of that suite, it counts as one activation of the suite.  You cannot take the six or seven different applications that might be in a suite and install and activate them in six or seven different machines... only two machines.
    If your scenario will allow for it, one thing you can do is install the programs on all the different machines and only activate two of the machines at any given time.  If you need to activate a program on a third machine then you need to deactivate on one of the currently activate machines first so that you have an open activation to use again.  I do not remember if there is a limit to the total number of activations you can process for the life of the software.

  • Please help: Example how to peploy application from jar file step by step

    Please help: Example how to peploy application from jar file step by step.
    All help appreciated
    Mike

    Thanks I will try these links
    Mike
    "Slava Imeshev" <[email protected]> wrote:
    Hi Mike,
    These links could be useful:
    http://e-docs.bea.com/wls/docs61////adminguide/appman.html
    http://e-docs.bea.com/wls/docs61////quickstart/quick_start.html
    http://e-docs.bea.com/wls/docs61//////ConsoleHelp/application.html
    http://e-docs.bea.com/wls/docs61///programming/environment.html
    Regards,
    Slava Imeshev
    "Mike" <[email protected]> wrote in message
    news:3ca0e94c$[email protected]..
    Please help: Example how to peploy application from jar file step bystep.
    All help appreciated
    Mike

Maybe you are looking for