Example of code needed
Someone has the ActionScript that they would be willing to share? What I need is simple enough: open a display screen that has a text entry field, or both, with a button that allows you to reverse to a new screen. This screen just has a button to return to the first. No logic below, just the code display.
I did all my code in mixed mxml/as and I would try pure actionscript. I'm confused at the starting gate links to examples would be most gratefully received!
How about these for starters?
- Some code JRab
- a good thread with background
- another thread, a lot more code JRab
Really, those who are only in the six first hits "change page" on this forum. If you don't know what to do with all this, read the second thread listed above carefully (especially the comments of jtegen), so you will have the bottom to ask more questions then. I also feel 'library' that John (ago search to try another term) has real support to do that now, while these discussions it has just created.
Tags: BlackBerry Developers
Similar Questions
-
ConfigurationDeployEx example of Code needed
Could someone send me a code example using the ConfigurationDeployEx method? The standard method of ConfigurationDeploy is not powerful enough to do what I need, but I can not get the ConfigurationDeployEx method works regardless of what I'm trying. Preference I need sample code in c# 2008. Thanks in advance.
Is attached to a Visual Studio 2005 with a project solution. The project concerns a nunit test case (which could easily be converted to run in a console application. NUnit is also part of zip archive.)
The code does the following:
1 is a configuration in the workspace. In my
the test configuration had a VM with a physical and two virtual
networks.
2. he grabs at the library
3. extract from the library
4. deploys it in closing mode (AllowAllInAndOut)
and she finds all the physical and virtual networks that is the configuration
connected all the primary physical and virtual networks bridges
network.
Also attached is the network diagram after code execution
-
Image caching examples of code or the library.
Hello
I'm new to BB. I need examples of code or any which third-party library images of the cache.
Tried with all provided sources, but not able to make account.
Please help me.
Thanks in advance.
Thank you all, its been good to get your knowledge of this forum. I'll try to implement.
-
example of code source (fmb)
I'm new in the development of the oracle. I need examples of code for the oracle 10g Forms Builder.
I notice that it is the thing that is not yet in the knowledge of Google.
I wonder who the oracle forms source code is not available on the web. whereas if we're talking other tools such as .net or php! thousands of examples of code are available for almost all kinds of requirements to do a job.
I'll be very grateful if someone could give some code examples (fmb, rdf, etc.)
Thank youDon't know how this is different from any other language (at least as far as I know), but: learn the basics, try to resolve your issue with the knowledge that you have and if you get stuck there is no shame in asking questions (for example here), of course, explaining your problem in detail and not the it does not work please give me the code , it's urgent! type of question...
and for what it's worth, even if it is not directly related to the forms: asktom, the developer of the Application Guide and PL/SQL reference manual are great references to learn stuff.
see you soon
-
Looking for an example of code - first_tab &; next_tab
Looking for examples of code, used in a dialog box, which uses 'first_tab' & 'next_tab '. Can anyone provide a copy of sample work that uses this code? Yes, I have read the reference books - do not understand and cannot operate.
Thank you, in advance.
OK, try this. You can place it in the mouse event to the top of a button:
var demoDlg = {}
DoDialog: function() {return app.execDialog (this);};
initialize: {function (dialog)}
var d_init = {/ / set the text of the field values to indicate their position in the tab order}
"txt1": "second",.
'txt2': '4 ',.
"txt3": «First»,
'txt4': '3 '.
};
Dialog.Load (d_init);
},
Description: {}
first_tab: 'txt3', / / * this set the name of the first control in the tab order
name: "Dialogue of the demo tab.
items:]
{
type: "display."
Width: 250,
items:]
{
type: "display."
Width: 240,
items:]
{
type: 'edit_text. "
item_id: "txt1"
next_tab: 'txt4', / / txt4 will receive the update then
Width: 200
},
{
type: 'edit_text. "
item_id: "txt2."
Width: 200
},
{
type: 'edit_text. "
item_id: "txt3."
next_tab: "txt1", / / txt1 will receive the update then
Width: 200
},
{
type: 'edit_text. "
item_id: "txt4."
next_tab: 'txt2', / / txt2 will receive the update then
Width: 200
}
]
},
{
type: "ok."
}
]
}
]
}
};
demoDlg.DoDialog ();
-
Examples of code for the robot LDAP plugin is missing
I downloaded and installed ITS 10.1.8 version but the sample code for the robot LDAP plugin isn't the case to find. The "sample" directory is missing. The example of code removed for any reason or is it replaced by something else? We must be able to search an LDAP compatible to v3 for our new dashboard application.
The document "Secure Connector Software Development Kit" for ITS Version 10.1.6 says the following:
-Oracle shipped three sample plug-ins that supports analysis, analysis of database table and analysis file LDAP directory.
-ORACLE SECURE ENTERPRISE SEARCH comes with three sample plug-ins sub $OH/search/sample/agent.Yes, samples of tracks were removed in 10.1.8 because they have not been sufficiently tested, or considered good enough to ship.
However, I have the LDAP robot and I'll be happy to send it to you (STRICTLY no guarantee, of course!) If you leave me an email for roger dot ford at oracle dot com.
-
/*******************************************************
Simplification of Windows HIDAlan Ott
Software signal 1122/08/2009
Copyright 2009, all rights reserved.
The contents of this file can be used by anyone
for any other reason without conditions and can be
used as a starting point for your own applications
that appeal to HIDAPI.
********************************************************/#include
#include
#include
#include
#include "hidapi.h".The headers needed to sleep.
#ifdef _WIN32
#include
#else
#include
#endifint main (int argc, char * argv)
{
int RES;
unsigned char buf [256];
#define MAX_STR 255
WSTR wchar_t [MAX_STR];
hid_device * handle;
int i;WIN32 #ifdef
UNREFERENCED_PARAMETER (ARGC);
UNREFERENCED_PARAMETER (argv);
#endifstruct hid_device_info * devs, * cur_dev;
devs = hid_enumerate (0x0, 0x0);
printf ("id=%d\tsproduct id = %d\n",devs-> vendor_id provider, devs-> product_id ");
cur_dev = devs;
so that {(cur_dev)
printf ("detecte\n device type: % 04hx %04hx\n path: %s\n Serial_number: %ls", cur_dev-> vendor_id, cur_dev-> cur_dev-> path, product_id, cur_dev-> Serial_number);
printf ("\n");
printf ("manufacturer: %ls\n", cur_dev-> manufacturer_string ");
printf ("product: %ls\n", cur_dev-> product_string ");
printf ("output: %hx\n", cur_dev-> release_number ");
printf ("Interface: %d\n", cur_dev-> interface_number);
printf ("\n");
cur_dev = cur_dev-> next;
}
hid_free_enumeration (devs);To implement the command buffer.
Memset (buf, 0x00, sizeof (BUF));
buf [0] = 0x01;
buf [1] = 0x81;Open the unit by using the VID, PID,
and possibly the serial number.
handle = hid_open (0x4d8, 0x3f, L "12345");
handle = hid_open (0 x 0461, 0x4d81, NULL);
If (! handle) {}
printf ("cannot open device\n");
Return 1;
}Read the manufacturer string
WSTR [0] = 0x0000;
RES = hid_get_manufacturer_string (handle, wstr, MAX_STR);
If (res<>
printf ("could not read the manufacturer string\n");
printf ("string of the manufacturer: %ls\n", wstr ");Read the product chain
WSTR [0] = 0x0000;
RES = hid_get_product_string (handle, wstr, MAX_STR);
If (res<>
printf ("cannot read string\n product");
printf ("string of product: %ls\n", wstr ");Read the serial number string
WSTR [0] = 0x0000;
RES = hid_get_serial_number_string (handle, wstr, MAX_STR);
If (res<>
printf ("could not read the serial number string\n");
printf ("string of serial number: (%d) %ls', wstr [0], wstr");
printf ("\n");Read the indexed string 1
WSTR [0] = 0x0000;
RES = hid_get_indexed_string (handle, 1, wstr, MAX_STR);
If (res<>
printf ("could not read the string indexed 1\n");
printf ("indexed 1 string: %ls\n", wstr);Define the function hid_read() as non-blocking.
hid_set_nonblocking (handle, 1);
Try reading from the device. It is and must be without
given here, but enforcement should not block.
RES = hid_read (handle, buf, 17);Send a report on the device
buf [0] = 0x2;
buf [1] = 0xa0;
buf [2] = 0x0a;
buf [3] = 0x00;
buf [4] = 0x00;
RES = hid_send_feature_report (handle, buf, 17);
If (res< 0)="">
printf ("cannot send a feature report. \n") ;
}Memset (buf, 0, sizeof (BUF));
Read a report of the device
buf [0] = 0x2;
RES = hid_get_feature_report (handle, buf, sizeof (buf));
If (res< 0)="">
printf ("failed to get a feature report. \n") ;
printf ("%ls", hid_error (handle));
}
else {}
Print the buffer returned.
printf ("function Report\n");
for (i = 0; i< res;="">
printf ("% 02hhx", buf [i]);
printf ("\n");
}Memset (buf, 0, sizeof (BUF));
LED toggle (cmd 0x80). The first byte is the report number (0 x 1).
buf [0] = 0x1;
buf [1] = 0x80;
RES = hid_write (handle, buf, 17);
If (res< 0)="">
printf ("could not write () \n");
printf ("error: %ls\n", hid_error (handle));
}Status request (cmd 0x81). The first byte is the report number (0 x 1).
buf [0] = 0x1;
buf [1] = 0x81;
hid_write (handle, buf, 17);
If (res<>
printf ("impossible to write() (2) \n" ");Read the requested State. hid_read() has been set to be
non-blocking by the call to hid_set_nonblocking() above.
This loop shows the non-blocking of hid_read() nature.
Res = 0;
While (res == 0) {}
RES = hid_read (handle, buf, sizeof (buf));
If (res == 0)
printf("waiting...\n");
If (res<>
printf ("could not read () \n");
WIN32 #ifdef
Sleep (500);
#else
usleep(500*1000);
#endif
}printf ("read data: \n");
Print the buffer returned.
for (i = 0; i< res;="">
printf ("% 02hhx", buf [i]);
printf ("\n");hid_close (handle);
/ * Free of static objects of HIDAPI. */
hid_exit();WIN32 #ifdef
System ("pause");
#endifreturn 0;
}Hi KIRAN RM,.
Given that you need example code to access a HID device in windows 7, the question you have posted is better suited for the MSDN Forums. Please post your query in the link next to the support of the MSDN forum for further assistance.
-
Need examples of code to parse the xml using kxml2
Hello world
I am a beginner for Blackberry, I want to get the data from the xml file. I look and see the section use of kxml2 is a better choice.
But I can't find an example code for it on the Blackberry. Can someone share me?
I open kxml2.jar, I see xmlParser and kxmlParser, whoever I'm use()?
Anbody can help me contact how to use kxml2 clearly?
Thank you very much. Sorry for the bad English.
--------
Binh - VietNam
Ah yes, sorry, I assumed automatically kxml to be used with ksoap2.
kxml is a j2me parser commonly you can find sources in other forums, for example
http://www.developer.Nokia.com/community/wiki/How_to_parse_an_XML_file_in_Java_ME_with_kXML
http://j2mesamples.blogspot.com/2009/04/XML-parsing-in-J2ME.html -
Need an example of code bulkupdate
Hi all
I'm new to collections,
Can you please help me write a piece of code to bulkupdate lines?
My requirememt is that I have updated to suddenly batchid by plsql for script below.
create table test_bulkupdate (Expenditure_id Number, number Batch_Id)
insert into test_bulkupdate values (1, null)
insert into test_bulkupdate values (2, null)
insert into test_bulkupdate values (3, null)
Commit
Select * from test_bulkupdate
Concerning
RNsb92075 wrote:
Jac says:
You'll easily by GooglingWhy should he OP be bothered to GOOGLE, similarly when solutions spoonfed here?
It's an off-day here... Not working...
A boring day... So, just refreshing myself...
-
Where can I find examples extracted code?
Can someone tell me if there is a place where I can find snippets of code and examples demonstrating the use of the NDK API? In particular there at - it a demo app using orientation API events.
I'm trying to create a Native of ActionScriopt Extension, and to that end, I've implemented a HelloWorld extension. I find the API documentation appropriate for orientation events, but I need help to shorten my learning curve - concrete examples would be very helpful.
There are many samples available at http://blackberry.github.com/ndk/samples.html (including Geotagging)
-
Example of Code that shows the geocoding reverse to a mailing address?
Can someone well want to show an example or two so that I can have for clarification. I need to have a developed application that can get the current GPS position and reverse geocode the address. I googled cela and have not been able to find a solution.
Any help in this matter would be greatly appreciated
Thank you
I have a webwork extension that runs this code
Historic landmark [] = Locator.reverseGeocode (address, Locator.ADDRESS);
{If (landmark! = null & landmark.length > 0 & {landmark [0]! = null})}
AddressInfo info = landmark [0] .getAddressInfo ();info.getField (AddressInfo.STREET)
}But I think you coud use google gears on BB5 and BB6 on HTML5 Geolocation.
-
Hello world
Everyone can share codes sample detailed to set firewall rules and NAT for c# rules? I looked in the examples provided with the API, but I need more samples.
Here is the example of function to configure the firewall to VCloud API 5.1 for c# rule.
///
To create an object of type of firewall rule. This object is used to configure the firewall.
///
Name of the rule
Source IP address range
Firewall Type protocols
Type of firewall policy
Source port
Destiniation Ip address range.
Destination
Toggle rule
Turn logging on or off.
Firewall rule public static FirewallRuleType CreateFirewallRule (string name, string sourceIpRange, FirewallRuleTypeProtocols protocols, FirewallPolicyType action, sourcePort int, string destinationIpRange, int destinationPort, bool isEnabled, bool enableLogging)
{
Create an object of type firewall rule.
FirewallRuleType firewallRuleType = new FirewallRuleType();
Configure the setting was active user interface check box.
firewallRuleType.IsEnabled = isEnabled;
firewallRuleType.IsEnabledSpecified = true;
Set the description of the rule from the user interface name text box.
firewallRuleType.Description = name;
Normally, this is a port number.
firewallRuleType.SourcePortRange = sourcePort.ToString ();
firewallRuleType.SourcePortSpecified = true;
Configure the Protocol
Protocol of var = new FirewallRuleTypeProtocols();
Value of the Protocol Set object
Protocol. Items = new Object() {true};
Define the name of element
Protocol. ItemsElementName = new ItemsChoiceType [] {ItemsChoiceType.Tcp};
Protocol Set
firewallRuleType.Protocols = Protocol;
Set the destination IP address range
firewallRuleType.Item = destinationIpRange;
Normally this is the port number.
firewallRuleType.DestinationPortRange = destinationPort.ToString ();
Set Source Ip range
firewallRuleType.Item1 = sourceIpRange;
Configure logging check box UI activate recording.
firewallRuleType.EnableLogging = enableLogging;
firewallRuleType.EnableLoggingSpecified = true;
Configuration by default allow/deny action.
firewallRuleType.Policy = action. Value();
Return firewallRuleType;
}
-
are there examples of code for services 2.0 web?
I've implemented insert/update/delete in all flavors with the 1.0 api. I try to use version 2.0 api with c# .net and am not finding any code in the example. I don't need a lot, a sample of a work in c# for web services 2.0 query would be nice. The web services guide does not exactly help here.
Thanks in advance for any help.
JJHere is an example of a query on a custom object
iceCustomer.CustomObject4 ice = new iLink.iceCustomer.CustomObject4 ();
ice. URL = session. GetURL();
iceCustomer.CustomObject4QueryPage_Input iceQryInput = new iLink.iceCustomer.CustomObject4QueryPage_Input ();
iceCustomer.CustomObject4QueryPage_Output iceQryOutput = new iLink.iceCustomer.CustomObject4QueryPage_Output ();
iceQryInput.ListOfCustomObject4 = new iLink.iceCustomer.ListOfCustomObject4Query ();
iceQryInput.ListOfCustomObject4.CustomObject4 = new iLink.iceCustomer.CustomObject4Query ();
iceQryInput.ListOfCustomObject4.CustomObject4.AccountId = new iLink.iceCustomer.queryType ();
iceQryInput.ListOfCustomObject4.CustomObject4.QuickSearch1 = new iLink.iceCustomer.queryType ();
iceQryInput.ListOfCustomObject4.CustomObject4.QuickSearch1.Value = "" = ' "+ DbReader.GetString (0) +" ' ";"
iceQryOutput = ice. CustomObject4QueryPage (iceQryInput);
If (iceQryOutput.ListOfCustomObject4.CustomObject4! = null)This is an insertion
ImportTx.CustomObject6 Tx = new iLink.ImportTx.CustomObject6 ();
Tx.Url = session. GetURL();
Entry ImportTx.CustomObject6Insert_Input = new iLink.ImportTx.CustomObject6Insert_Input ();
ImportTx.CustomObject6Insert_Output output = new iLink.ImportTx.CustomObject6Insert_Output ();
entry. ListOfCustomObject6 = new iLink.ImportTx.ListOfCustomObject6Data ();
entry. ListOfCustomObject6.CustomObject6 = new iLink.ImportTx.CustomObject6Data [1];
entry. ListOfCustomObject6.CustomObject6 [0] = new iLink.ImportTx.CustomObject6Data ();
entry. ListOfCustomObject6.CustomObject6 [0]. Name = (DateTime.Now.ToString + ":" + txType);
entry. ListOfCustomObject6.CustomObject6 [0]. Description = transaction;
entry. ListOfCustomObject6.CustomObject6 [0]. CustomObject5Id = iLinkImportKey;
output = Tx.CustomObject6Insert (input);Beware, it's that there is no support for the child objects with Web Services v2.0.
-
Salvation;
I'm looking for example LabVIEW PXI-5114 configuration including trigger code? I have the mounted 5114 in SMU-1065 chassis.
I am using LabVIEW 2010.
Thank you for all the examples.
Steve
Hello Steve,.
To find the code for NO-Scope example in LabVIEW 2010, please navigate to the inventor of LabVIEW example (help > find examples) and search for niScope EX Acquistion.vi configured. This VI will show you the different triggers niScope has and how they are implemented.
-
Examples of Code for the (Simplified) Client software
After digging through the application of the whole sample RIM provides I thought I want to provide a code for the simplified example. Short opinion: post connection suffix is not allowed on the forums. You can see the sample application of the RIM if you do not already elsewhere. Please see the article here, it's under review if you want to contribute (although the code is mainly in the attached files): http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Simplified-BIS-Push-client-sample...
the article has been published: http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Simplified-BIS-Push-client-sample...
Maybe you are looking for
-
When firefox is available for Windows Phone?
-
Satellite C50-A0330 - keyboard problem
When I press the F key on the system keyboard while I'm typing this message make a pop window with a question leave this page? When press 3 or R get passing same 3R by pressing C or V Gets CV. Please provide me the solution for this problem
-
HI, there. Please post the hp web cam driver for hp compaq 620 with the windows 7 operating system... .Please
-
Missing antenna on the module Wi - Fi
Hello I opened my notebook of 650 HP today to upgrade my 802.11ac WIRELESS and that's what I found: There is only an antenna connected to the Wi - Fi modules! This harm the Wi - Fi chip for standard impedance for RF components is 50 ohms, and without
-
I took the card from my Sansa ClipZip and put it in the Sport. When I choose an artist on the map and choose shuffle it sufflles by the titles of the artist without problem. When I want to shuffle on all the songs on the card in all categories (artis