HTTPService request and the Actionscript questions
HelloI don't know if anyone on the list could tell me what I'm trying to do here is possible. The scenario is that I have here a HTTPService which functionally works fine, but I want to do the rest of the processing in-house, instead of PHP (that of the HTTPService do the job)
I wanted to make a function call to the HTTPService and then manage the variables I get from PHP, which currently I just use something like {simulation.lastResult.service.number}. If I want retrieve this value directly and do some manipulations of calculation with it in Actionscript, how can I retrieve the value of the above without having to rewrite my HTTPService? (Or, what is more effective?)
Note: I am currently using PHP to do the same thing, but I would like to do in-house without hoarding my remote server.
Any help is appreciated.
Here's the HTTPService I:
Try this example. It uses an XML file on my site that the data source and does not use PHP for any treatment, but it gives the basics.
define your variables to the instance level and make sure that they are can be related private void resultHandler(e:ResultEvent): void {} private void faultHandler(e:FaultEvent): void {} ]]>
layout = "absolute" >
Import mx.controls.Alert;
Import mx.rpc.events.FaultEvent;
Import mx.rpc.events.ResultEvent;
[Bindable] private var totalBuy:int = 0;
[Bindable] private var totalSell:int = 0;
[Bindable] private var remaining: int = 0;
This returns XML data your data may be different.
You will see what the returned XML. Your code will change here
According to what is returned.
var xmlLst: XMLList = new XML (e.result) .children ();
Alert.Show (xmlLst.toXMLString (), "Return Values");
totalBuy = xmlLst [0];
totalSell = xmlLst [1];
remaining = totalBuy - totalSell;
}
Alert.Show (e.message.toString (), "Error");
}
private void runService(): void {}
dataService.send ();
}
<>
ID = "dataService."
' URL =' http://www.siteorderly.com/xml/costData.xml '
resultFormat = "xml".
result = "resultHandler (Event); »
Fault = "FaultHandler (Event); » />
Tags: Flex
Similar Questions
-
Questions and the Quiz Question box misalignment Cap 7
I work in the latest version of Captivate 7.0.1) subscription version and added a question true/false quiz at the course. The inserted question aligns the selection 'box' (circle) correctly for the first response, but not for the second. This is true for the multiple choice questions as well.
The master looks very good, there is no extra space in the text of the question (it occurs without the addition of content), there is no way to close the gap of space. If I move the text, the misaligned selection box moves with it and keeps the difference.
I imported a question of another master, and it works very well, so I have a workaround, but I would like an answer to what is the cause, so I don't inadvertently re-create the problem if it's my fault. And if it's a bug, then Adobe should jump on this one.
Images - example misaligned
and aligned example imported from another master
Uncheck the Auto size legends in Preferences > by default.
Anthony
-
Retrieve the URL request and the value of the parameter/pair
My Flex (swf file) application is download to the browser of the client computer to the server with a URL that has a subdirectory after the
domain name and the parameters. The flex needs application retrieve dynamic information. I think I should use ExternalInterface to do.
Code examples or suggestions for it? Thank you.
You can find Flex using the browser Manager
-
Translated the request and the calendar BUG?
Hello
APEX 4.2.1.008
I have a request, main language Application = "French (Canada) (fr - ca)", language of the derived Application of = "Session".
I have a translated application, mapping language = "English (Canada) (fr - ca).
When I run a page with a calendar in the french request everything works well, but in English, previous, next or today buttons does not refresh the calendar.
I was able to reproduce it in the sample on apex.oracle.com database Application:
User: demo
PWD: demo
French = OK:
http://Apex.Oracle.com/pls/Apex/f?p=72351:10: & p_lang = en - ca
English = :(:
http://Apex.Oracle.com/pls/Apex/f?p=72351:10: & p_lang = en - ca
Thanks for your help,
LucienThank you very much for the information and I'm able to debug the problem. I filed a bug for this issue and will be fixed in the next version of the product.
Thanks again
Sirot -
As the maximum goal I want to "enter" into two accounts of the same service (yahoo, for example). If it is not accessible, then I want to know: is the site located on a tab of the browser knowing other sites residing on other tabs of the browser WHERE the tabs are "filled" by different sites?
Hello
I'm glad to hear that your problem has been resolved. If you haven't already done so, please select the answer that solved the problem. This will help other users with similar problems more easily find the solution.
Please contact the Mozilla Support.
-
I want my home back only ONE page!
After following your suggestions, nothing has changed to uninstall and reinstall fixed it
-
DV7 - 3188cl HP Pavilion: HP Pavilion DV7 - 3188cl and the Caddy Question
Hello
I think of upgrading to an SSD... I was wondering if the HP Pavilion dv7 - 3188cl comes with a basket for the 2 drives installed? Any help is greatly appreciated... Thanks in advance...
Hello
The answer is no, you can buy form HP or Scout seller such as:
Kind regards.
-
Custom menu item at the request of Message: two questions
I try to add a custom menu to the Blackberry message request and get two questions:
- When you click the custom menu, the "Application.getApplication () .requestForeground (); method call does not call the main() method of my application "DemoMI".
- If I changed the method of
Application.getApplication () .requestForeground)
TO
ApplicationManager.getApplicationManager () .runApplication (app); Where app is the "DemoMI" application descriptor
Will be called the main() method. However, how can I make the subject of the Message around in the method "run" for the application "com.demo.DemoApp"? I tried to use a static variable 'mi ContactsDemoMenuItem', but I've always had "null" value when the "main()" is called.
My environment:
- JDE: 4.2.0
- Feature: Pearl 8100 with OS 4.2.0
import net.rim.device.api.system.*; import net.rim.device.api.ui.component.Dialog.*; import net.rim.blackberry.api.menuitem.*; import net.rim.blackberry.api.pdap.*; import javax.microedition.pim.*; import net.rim.blackberry.api.mail.Message; import net.rim.device.api.ui.UiApplication; import net.rim.device.api.ui.*; import net.rim.device.api.ui.component.*; import net.rim.device.api.ui.container.*; public final class DemoMI extends Application { private static final String ARG_LAUNCH_CONTACT_DEMO = "1"; private static ContactsDemoMenuItem mi; public static void main(String[] args) { if(args == null || args.length == 0) { DemoMI app = new DemoMI(); app.enterEventDispatcher(); }else { String appToLaunch = args[0]; if(ARG_LAUNCH_CONTACT_DEMO.equals(appToLaunch)) { new com.demo.DemoApp(mi.getMessage()).enterEventDispatcher(); } } } DemoMI() { long locationToAddMenuItem = ApplicationMenuItemRepository.MENUITEM_EMAIL_VIEW ; ApplicationMenuItemRepository amir = ApplicationMenuItemRepository.getInstance(); ApplicationDescriptor app = ApplicationDescriptor.currentApplicationDescriptor(); app = new ApplicationDescriptor(app, new String[]{ARG_LAUNCH_CONTACT_DEMO}); mi = new ContactsDemoMenuItem(app); amir.addMenuItem(locationToAddMenuItem, mi); System.exit(0); } private static class ContactsDemoMenuItem extends ApplicationMenuItem { ApplicationDescriptor app; Message msg; ContactsDemoMenuItem(ApplicationDescriptor app) { super(20); this.app = app; } public String toString() { return "My Menu Item"; } public Message getMessage() { return msg; } public Object run(Object context) { if ( context instanceof Message ) { msg = (Message)context; try { Application.getApplication.requestForeground(); //ApplicationManager.getApplicationManager().runApplication(app); }catch(Exception e) { e.printStackTrace(); } } else { throw new IllegalStateException( "Context is null, expected a Contact instance"); } return null; } } }
What you see is the expected behavior. The ApplicationMenuItem runs in a different process where your application was run. You have two options.
You can store the subject of the Message in the RuntimeStore when the ApplicationMenuItem is called. Your application you are undertaking could then read the subject of the Message of the RuntimeStore.
Or you can create an application based on the drawing below:
How to allow - a listener in the background to detect and update a GUI application
Article number: DB-00406 -
RAM and GPU update questions about the Satellite A60 652
Hello
I have a question about my Satellite A60-62. I want to upgrade the RAM, but I do not know what kind of chip that I have to do and how that insert into the laptop.
I also want to get a new card to my video graphics, I currently have "Radeon Mobility IGP 7000', is this possible, and the same questions again, what card do I need and how to I insert in the laptop..?Thanks for any help.
Hello
The works of A60 with PC2100 and PC2700 memory.
The maximum is 1536 MB.
Toshiba part numbers are:
PC2700 256 MB PA3311U - 1 M 25
PC2700 512 MB PA3312U - 1 M 51
1024MO PC2700 PA3313U-1M1GThe graphics card cannot normally be improved.
Good bye
-
Table of IOM which shows the relationship between the request and approver
Hello
I have a few users who belong to the group "admin".
Any request for a particular resource goes to this group for approval.
I tried most of the tables in oim 11g r2 to find a relationship between the request and the approver group.
The demand table has information about the request but no relationship with regard to the approver. Approver as a group, I need to know the status of name and the Group (pending, approved, rejected) request.
Please could you all expert let me know the table I can find information on these...
Thank youSearch in the SOA tables
WFTASK
-
15 - p112ne: HP 15-p112ne: port msata and the AHCI mode
Hello.
I think to upgrade my laptop HP 15 - p112ne. I want to buy SSDS. So my first question is, if this model has msata port available on the motherboard. And the second question is, why I did not in the BIOS SATA mode selection? Because then I would switch to AHCI mode.
Thank you.
Here is the Service Manual:
There is no port mSATA on this model. Page 94 shows how to get into the hard drive Bay to replace the hard drive with an SSD.
This video will be helpful, too:
http://h10032.www1.HP.com/CTG/manual/c04427554
The BIOS is constantly on ahci. You don't need to play with it. If you need more help with this return ticket.
If it's 'the Answer' please click on 'Accept as Solution' to help others find it.
-
I got an email from yahoo that I used all the time but when I went and changed my password and secret yahoo blocked my email secret questions and the previous question it ask I remember my answer and now I can't evaluate my yahoo email, what should I do?
Hello
The problem is with yahoo mail, I suggest you to contact the support mail yahoo and check.
http://help.Yahoo.com/communities/index?page=forums
http://answers.Yahoo.com/;_ylt=AtTnYarr2VjnoZBZWUZGbmSe5HNG;_ylv=3
-
They asked me how many spoons of sugar I wanted in my coffee and I covered the phone but not quite enough and I answered 2. Well, I got the blue tooth in my ear and the last question heard 2 computers, what is wrong, that it is on one. I live in a small house and take care of my elderly mother. We wouldn't know what to do with two computers.
The system would allow me to explain the misunderstanding. Please help us to validate this version only of windows 8.
I can be reached at < phone="" number="" removed="" by="" cm=""> and God bless you.
Very sincerely yours
Marcus T. Hodgkins
Hi Marcus,
Thanks for posting your question on the Forums of community of Microsoft.
If you made a mistake by activating windows using the telephone activation.
I suggest you to follow the same procedure again to turn on the phone and choose the right option to activate.
Follow the steps below for phone activation.
1. press the Windows key + X , and then clickrun, and then type: slui.exe 4
2. then press the ENTER"" key.
3. Select your "country" in the list.
4. choose the option "activate phone".
5. stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
6. explain your problem clearly to the support person.
Hope this information is useful. Please let us know if you need help with Windows.
-
Need to reply and report interview question and Oracle Forms 10 G
Hi gurus
Soon, I expect my interview for Oracle Forms and Reports 10 G, I'd appreciate it if someone provides me with assistance to find the answers and the related question. Thank you
Concerning
Shu
Hello
Google is your friend
http://www.coolinterview.com/type.asp?iType=64
http://asset-9.soup.IO/asset/10511/3383_9441.PDF
Amatu Allah
-
Flashing starfield off a mc - the last question
I have create a Tween star in an mc.
Its´s a bitmap which is blink and change colors in a lively circle.
I ve got a response from shikozel who respond to this:
> you need to give your movie star, a name of link clip. lets say star_mc. Then, wrap 100 times. in each
> loop you attach it > star_mc somewhere at random on the scene. Let's say the width of your scene is
> 500wx500h. The code should look like this:
> for (var i: Number = 0; i < 100; i ++) {}
> star_mc = _root.attachMovie ("star_mc", "star_mc" + i, _rott.getNextHiestDepth ())
> star_mc._x = random (500)
> star_mc._y = random (500)
>}
And the last question is:
Cool, this is the first step - to spread the mc everywhere.
But I wonder if they can be spread over time. Why?
-If all the stars moving and individual flashing at the time.
-Now moving starfield and flashes as a group, where each
Star is in the position exactly even their interpolation
process, at the time.
(the flashing State is exactly the same for eveyone)
In other words:
How to create a starfield where each star flashes and
change it s individual colors?
: b /]
setInterval() would be one approach, but then the appearance of your stars would be shifted. That is to say, you would add one (or a few at a time) and if you add a little at a time, they would be sync had probably give a satisfactory appearance.
Maybe you are looking for
-
Freeze frame disappears when the join clips
I have iMovie 10.1 on my new iMAC. I have a video playing a few seconds of game my son lax. Then I divide and added a stop on image - to stop the action for 2 seconds (I am also a PIP for him put an arrow). Then I left the second clip continu
-
I tried to bend the PIN as shown in a previous answer... .and even jiggling, but still nothing... the only way I have to continue to use this Ipod Nano is with the remote control of the mooring/player device.
-
Home Edition Vista won't read DVD
my system will not read DVDs, why? I am not computer savy and I can't understand this at all. Help, please?
-
where can I find images of screenshot of vista (I.E. image files)
want a screenshot of the image file
-
The sidebar which is normally so you see what you placed is not how do I get it?