Add more windows buttons to AIR applications.
Hello, I was downloading a song with the help of Internet Download Manager and saw this extra button on the border of it, is there any way to add buttons like this on AIR applications?
you might be able to do that using a 3rd party tool like zinc.
Similar Messages
-
Row Level PPR in Advanced Table with Add More Rows Button
<br>
I have programmatically fired PPR event on MessageChoice. But it is in Advanced Table with
Add More Rows Button. When the value is changed in MessageChoice I Show/Hide Custom LOV
through SPEL like this ${oa.BioEmployeePVO.EmpManagerRender} .
But it is <b>hiding the all the ROWS</b> not just the row where the value has been changed.
I even tried with this code and get NULL for rowReference.
String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
In Processrequest()
String pageName = pageContext.getRootRegionCode();
Hashtable params = new Hashtable (1);
params.put ("param1", pageName);
Hashtable paramsWithBinds = new Hashtable(1);
paramsWithBinds.put ("param2",new OADataBoundValueFireActionURL (mcb, "{$AttendeeType}"));
mcb.setFireActionForSubmit ("empPositionChange", params, paramsWithBinds,false, false);
In ProcessFormRequest() {
if ("empPositionChange".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
String rowReference = pageContext.getParameter("param2");
// String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
Serializable[] parameters = { rowReference };
am.invokeMethod("handlePositionChangeEvent", parameters);
<br>HI Kumar,
Answer to your last post is "yes".
Now to your doubt regarding the code:
Hi Anna
I am trying to understand your code.
FireAction firePartialAction = new FirePartialAction("fireHideEvent"+(i/noOfTlaColSpan));
HideImgBean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
1. What is this i/noOfTlaColSpan ?
:)Forget abt this in your case it should be the event name which u r firing and capturing the it in the PFR.
Like FireAction firePartialAction = new FirePartialAction("YOurEventName");
and in PFR u can capture tht as:
if("YOurEventName".equals(pageContext.getParameter(EVENT_PARAM)))
//your logic to invoke AM method
2. I believe this HideImgBean would be MessageChoice for me?
:)Yep ur right
3. This brcdOhInventoryViewUpdateVOImpl would be the Custom PVO(Extending Seeded Base VO)
I create by adding the transient attributes?
:)Yep ur right
4. I cannot understand this code. Could you explain.
:)Please look at my comments in some of the lines .I have explained wht i am doing
if(updateIter==null)
updateIter[0]= invViewVO.createRowSetIterator("updateIter");//This initViewVo should be ur custom VO object
if(cnt>0)
updateIter[0].setRangeStart(0);
updateIter[0].setRangeSize(cnt);
for(int i=0;i<cnt;i++)
row = (brcdOhInventoryViewUpdateVORowImpl)updateIter[0].getRowAtRangeIndex(i);
String selectFlag=(String)row.invokeMethod("getPartNumber");//This getPartNuber should be replaced by the Prim Key inoke methd of ur VO
if(RowID.equals(selectFlag))
//This is my logic to set the transient attributes based on the msgChoiceBean value ..u have to pass the value when u invoke this method
if(reserveMethod.equals("BINARY"))
System.out.println("In Binary");
Boolean bVal= new Boolean("false");
Serializable sr[]={bVal};
Class []methodParamTypes = { bVal.getClass() };
row.invokeMethod("setshowreservetxt",sr,methodParamTypes);
Boolean bVal1= new Boolean("true");
System.out.println("bVal1"+bVal1);
Serializable sr1[]={bVal1};
Class []methodParamTypes1 = { bVal1.getClass() };
row.invokeMethod("setShowreservemsgchoice",sr1,methodParamTypes1);
break;
In my AM I am doing this. Am i doing right?:)Yep u r right
BioPrescribersPVO is the custom VO(extending seeded base VO).
public void handlePositionChangeEvent(String param)
OAViewObject vo = (OAViewObject)findViewObject("BioPrescribersPVO");
OARow row = (OARow)findRowByRef(rowReference);
if (row != null)
String position = (String)row.getAttribute("AttendeeType");
if (("PRESCRIBER".equals(position)) )
// BioEmpManagerRender is the transient attribute in BioPrescribersPVO.
row.setAttribute("BioEmpManagerRender", Boolean.TRUE);
row.setAttribute("BioPresManagerRender", Boolean.FALSE);
else
row.setAttribute("BioEmpManagerRender", Boolean.FALSE);
row.setAttribute("BioPresManagerRender", Boolean.TRUE);
} // end handlePositionChangeEvent()
// Initializing the custom VO
/*No need to initialize the VO because this is not a PVO(Propeties View object)
U r just using the existing VO and tht vo shloud have a primary key.Tht way u can match the rowref u r getting with the actual row from the View object*/
public void init()
OAViewObject appPropsVO = (OAViewObject)getBioPrescribersPVO();
if (appPropsVO != null)
if (appPropsVO.getFetchedRowCount() == 0)
appPropsVO.setMaxFetchSize(0); appPropsVO.executeQuery();
appPropsVO.insertRow(appPropsVO.createRow());
OARow row = (OARow)appPropsVO.first();
row.setAttribute("RowKey", new Number(1));
handlePositionChangeEvent("");
} // end init()
Thanks
Anna -
FLV Playback and Seekbar on different native windows in one Air application
Hello Everyone. I'm trying to make a simple video playback AIR application that utilizes the initial native window to house a transport control with a seekbar on it. Once the application launches, it creates a second (new) window on my second screen and places a FLVPlayback instance on that new window. Everything works just like it want it to except for one thing. When the seekbar and FLVplayback instance are not located on the same window stage, the seekbar handle sticks to the mouse when trying to scrub through the video.
I've added both the transport control and the FLVPlayback instance to the original native window as children and I have also added both of them to the new window as children and everything works just fine. It's only when they are separated and located on different stages that the seekbar acts up. When they are on the same stage, I can click on a point on the seekbar and the video jumps to that spot and continues to play and I can also scrub the seekbar, the video updates as I scrub, and when I release the mouse, the seekbar handle stays where I released the mouse. When they on separate stages, the seekbar handle continues to follow the mouse movement without releasing it. The video updates as the seekbar handle is moved due to it sticking to the mouse, but if I release the mouse, the handle is still moving with the mouse and the video is still being scrubbed. Like I said, everything works great except for this and I have reached my limit with time spent on this issue. Does anyone have any insight into this?
Here's my code for the project. This is my first AIR application, so I am coding it as I am learning, please be kind.
import fl.video.*;
import flash.display.*;
import flash.desktop.*;
import flash.events.*;
import fl.video.MetadataEvent;
import flash.geom.*;
import flash.ui.Mouse;
import flash.text.*;
GLOBAL SETUP
var flvControl:FLVPlayback;
var MasterWindow = stage.nativeWindow;
var screen1:Screen = Screen.screens[0];
var screen2:Screen = Screen.screens[1];
MASTER WINDOW SETUP
this.loaderInfo.addEventListener(Event.COMPLETE,maximize);
transControl.playPauseButt2.addEventListener(MouseEvent.CLICK, PlayButton);
if (Screen.screens.length > 1){
createVideoBKG();
createVideoPlayer();
GENERAL FUNCTIONS
//Maximize the initial screen
function maximize(e:Event) {
MasterWindow.x = screen1.bounds.left
MasterWindow.maximize();
MasterWindow.stage.scaleMode = StageScaleMode.EXACT_FIT;
//Hide Mouse Behind Video Window On Roll-Over
function MouseRollOver(e:MouseEvent):void
{ Mouse.hide() }
function MouseRollOut(e:MouseEvent):void
{ Mouse.show() }
//Play-Pause Button Control
function PlayButton(event:MouseEvent):void
if(transControl.playPauseButt2.currentFrame==1 ){
transControl.playPauseButt2.gotoAndPlay(2);
flvControl.play();
else {
transControl.playPauseButt2.gotoAndPlay(1);
flvControl.pause();
function CloseWindow(e:MouseEvent):void
NativeApplication.nativeApplication.openedWindows[2].close();
VIDEO BKG SETUP
function createVideoBKG(e:Event = null):void{
var newOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
newOptions.type = NativeWindowType.LIGHTWEIGHT;
newOptions.systemChrome = NativeWindowSystemChrome.NONE;
newOptions.transparent = true;
var videoBKG:NativeWindow = new NativeWindow(newOptions);
if (Screen.screens.length > 1){
videoBKG.x = screen2.bounds.left;
videoBKG.maximize();
chromeSetup(videoBKG);
videoBKG.activate();
//Video BKG Chrome Setup
function chromeSetup(currentWindow):void {
var vidBKG = new video_bkg();
vidBKG.name = "video_bkg2";
vidBKG.addEventListener(MouseEvent.ROLL_OVER, MouseRollOver);
vidBKG.addEventListener(MouseEvent.ROLL_OUT, MouseRollOut);
currentWindow.stage.addChild(vidBKG);
VIDEO Player SETUP
function createVideoPlayer(e:Event = null):void{
var newOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
newOptions.type = NativeWindowType.LIGHTWEIGHT;
newOptions.systemChrome = NativeWindowSystemChrome.NONE;
newOptions.transparent = true;
var videoPlayer:NativeWindow = new NativeWindow(newOptions);
if (Screen.screens.length > 1){
videoPlayer.x = screen2.bounds.left;
videoPlayer.y = screen2.bounds.top;
videoPlayer.width = screen2.bounds.width;
videoPlayer.height = screen2.bounds.height;
videoPlayer.stage.scaleMode = StageScaleMode.NO_SCALE;
videoPlayer.alwaysInFront = true;
var DVR = new DVR_Player();
DVR.name = "DVR";
DVR.x = 0;
DVR.y = 0;
DVR.addEventListener(MouseEvent.ROLL_OVER, MouseRollOver);
DVR.addEventListener(MouseEvent.ROLL_OUT, MouseRollOut);
videoPlayer.stage.addChild(DVR);
flvControl = DVR.display2;
flvControl.width = 1280;
flvControl.height = 720;
flvControl.skin = null;
flvControl.autoPlay=false;
flvControl.isLive=false;
flvControl.fullScreenTakeOver = false;
flvControl.align = VideoAlign.CENTER;
flvControl.scaleMode = VideoScaleMode.NO_SCALE;
flvControl.source = "olympics.f4v";
flvControl.seekBar = transControl.seekbarContainer2.seeker;
videoPlayer.activate();Does anyone have any ideas about this?
-
Add security certificate in adobe air application
Hello- Everytime I open my air application it prompts me to add certificate for secured connection.
Is it popssible to add certificate once and next time I open application it read from there itself without prompting.Hi Joe,
thanks for quick response.
In the meantime i was able to get to a solution. I am doing an ActionScript-based app btw. My goal here is the create an AIR Application that loads different modules on demand from a given internet ressource. The two applications are using the child/parentSandboxBridge to communicate.
I was using the SWFLoader class but did not correctly pass the LoaderContext with allowLoadBytesCodeExecution (or allowCodeImport for AIR2.0). As i was passing a LoaderContext with the mentioned variable, i was getting an VerifyError: Error #1053: Illegal override of activate in mx.managers.SystemManagerProxy since the AIR Application is done with Flex 4.0 and the loaded SWF is compiled with Flex 3.5.
The reason that error was thrown although the loadForCompatibility property was set to true was, that the SWFLoader class does not set the necessary applicationDomain for compatibility when a LoaderContext Object is passed. So i did the applicationDomain setting myself and everything works as a charme .
If anyone is interested in this procedure, just look into the SWFLoader::loadContent Method. In Flex 4 the interesting part starts at line 1836.
Thanks anyway.
Timo -
Opening a finder/windows explorer window from an AIR application?
I'm evaluating AIR right now and going through as much
documentation as I can find. Is there a way to open up an OS file
browsing window? For instance, after writing a file to an arbitrary
directory, could you open that director (preferably with the file
selected) in OS X's Finder or Windows Explorer? Obviously this is
possible in a native application (Lightroom does it, among others),
but I can't figure out if it's possible with an AIR
application.Take a look at:
http://livedocs.adobe.com/air/1/devappsflash/help.html?content=splash.html
http://livedocs.adobe.com/air/1/devappsflash/Filesystem_01.html
AND
http://livedocs.adobe.com/labs/air/1/aslr/flash/filesystem/File.html -
Reg:Customizing titlebar of a window in desktop air applications
I am trying to develop a custom component that has to be embeded into the title bar just beside the maximize, minimize, restore buttons on to the top right hand side in a window (air). Could any one help me out how to approach....
I tried using skins but couldn't succeed.
thanks,
Sukumar.Hi
I figured it out. Just in case if anyone is looking for the solution...just create a window skin, and in that add a titlebar and use a custom skin for that title bar to customize it.
Regards,
Sukumar. -
Help, need to add a delete button to my application?
i have a little application that you can add numbers and friends email too
i would like to add a minus selection/entry button?
do any of you guys have any ideas?
stop();
//create a new sql connection
var conn:SQLConnection= new SQLConnection();
//add an event handeler for the open event
conn.addEventListener(SQLEvent.OPEN, openHandler);
//create the database if it doesn't exist, otherwise just opens it
var dbFile:File =File.applicationDirectory.resolvePath ("exemplu.db");
conn.openAsync(dbFile);
function openHandler(event:SQLEvent):void {
//create a new sql statement
var sql:SQLStatement=new SQLStatement();
//set the statement to connect to our database
sql.sqlConnection=conn;
//parse the sql command that creates the table if it doesn't exist
sql.text= "CREATE TABLE IF NOT EXISTS contacte(" +
"id INTEGER PRIMARY KEY AUTOINCREMENT, " +
"nume TEXT, " +
"telefon INTEGER)";
//add a new event listener to the sql when it completes creating the table
sql.addEventListener(SQLEvent.RESULT,retrieveData);
//call the execute function to execute our statement
sql.execute();
function retrieveData(event:SQLEvent = null):void {
//create a new sql statemant
var sql:SQLStatement = new SQLStatement();
sql.sqlConnection=conn;
//this sql command retrieves all the fields from our
//table in the database and orders it by name
sql.text = "SELECT id, nume, " +
"telefon " +
"FROM contacte ORDER BY nume";
//add a new event listener if there is data
//to display it
sql.addEventListener(SQLEvent.RESULT, selectHandler);
sql.execute();
function selectHandler(event:SQLEvent):void {
//first we clear our list
lister.removeAll();
//the we create a result variable that holds
//all our contacts
var result:SQLResult=event.target.getResult();
//we check if results is not empty
if (result!=null&&result.data!=null) {
//and we add a new item to our list for
//each contact in our database
for (var i:Number = 0; i < result.data.length; i++) {
lister.addItem ({ label:result.data[i].nume + "-" +result.data[i].telefon
, nr:result.data[i].id });
plus.addEventListener(MouseEvent.CLICK,adder);
xu.addEventListener(MouseEvent.CLICK,closeapp);
back.addEventListener(MouseEvent.MOUSE_DOWN,drag);
//because my buttons are not real buttons
//but movieclips i need to set the
//buttonMode property to true
plus.buttonMode=true;
xu.buttonMode=true;
function adder(e:MouseEvent):void{
//remove the eventlistener and move to the
//next frame
plus.removeEventListener(MouseEvent.CLICK,adder);
nextFrame();
function closeapp(e:MouseEvent):void {
//close the application
NativeApplication.nativeApplication.exit();
function drag(e:MouseEvent):void {
//drag the application
this.stage.nativeWindow.startMove();
this is on the second key frame-
//this line restricts the user input
//to just numbers in the phone input box
//add a new event listener to our plus button
plus.addEventListener(MouseEvent.CLICK,adder2);
function adder2(e:MouseEvent):void {
//create a new sql statement variable
var sql:SQLStatement=new SQLStatement();
sql.sqlConnection=conn;
//the next sql command creates a new entry
//in the table contacte from our database
sql.text = "INSERT INTO contacte(nume, " +
"telefon)" +
"VALUES(@nume, " +
"@telefon)";
//to insert variables into sql commnads
//we use the parameters definition
sql.parameters["@nume"]=nume.text;
sql.parameters["@telefon"]=tel.text;
//add a new event listener that calls the
//function that retrieves the data
sql.addEventListener(SQLEvent.RESULT,retrieveData);
sql.execute();
//go to frame no. 1
prevFrame();
//remove the eventlistener from our plus button
plus.removeEventListener(MouseEvent.CLICK,adder2);use:
minus_btn.addEventListener(Event.MouseEvent,CLICK, clear)
function clear(e:MouseEvent){
var sql:SQLStatement = new SQLStatement();
sql.sqlConnection = conn;
var s:String = "DELETE from contacte WHERE nume= :numeparam AND telefon=:telefonparam";
sql.text = s;
sql.parameters[":numeparam"] = whatever;
sql.parameters[":telefonparam"] = whatever else;
//add listeners if you want
sql.execute(); -
Add more radio buttons to quiz template
I am using the quiz template to make a quiz. I want more than
2 radio buttons ,how can I add them.quote:
Originally posted by:
umr
I am using the quiz template to make a quiz. I want more than
2 radio buttons ,how can I add them.
Hello, if you are using MX 2004 (probably is the same for
other versions) then you have to do like this:
Go to keyframe where you see the radio buttons, right click
in the radio buttons area and select "edit in place", you will get
inside that clip and now you can copy/paste the radio buttons in
the stage to create more buttons. -
How to add more memory on MacBook Air
I installed OS X Yosemite about a week ago and now I only have 2 GB left on my computer, and it says that 1.98 GB are being used right now. I've been clearing it continuously but I can't keep continuing to do this. It's incredibly slow, keeps freezing, etc. If I were to go to the Apple store would they be able to add memory to my computer? How much would it cost, and how much memory would they be able to add? It's an 11 inch Mac Book Air made in mid 2011 if that helps. Also, I've been trying to search how to uninstall OS X Yosemite because it's eating away at my storage but it says you need a copy of the old operating system which I don't have, I'm not to experienced with computers either so I don't want to mess anything up, unless there is a easy/safe way to uninstall it.
Sorry for all the questions, but what exactly am I supposed to erase? All I see in the sidebar of Disk Utilities are Macintosh HD with Macintosh HD underneath it, then my flash drive. If I click on Macintosh HD, the first one, I then clicked on Partition. Here's a picture, what would I do.
-
Add 'window' button to TitledPane?
Can anyone see a way to add a 'window' button or buttons (similar to the Windows maximise button) to the title bar of a TitledPane in an accordion? I assume it could be done visually with a StackPane but then only the topmost layer would be active. At the moment, I have an expand link in the TitledPane content. The purpose is to temporarily remove the TitledPane from its accordion and to display it in a larger size as a modal dialog. Thanks in advance ...
What version of ID are you using? Live Preflight (Introduced in Version CS4) has links to all errors in the preflight panel itself.
-
AIR Application Installer and Only Installing Select Files
I have a AIR desktop application where I want to allow the user to install the base application and the later add more media files to the application as they purchase the media files. Would it be possible to add the media files using the standard AIR installer? Or would I have to resort to a custom installer?
When AIR installs an application does it complete delete the files from the previous install?
Would it be possible to update the base application and not touch existing media files?
Can you pass an install path to the AIR installer?I have done something similar with a document management app.
Once the app was installed it would check for a DVD / Thumb drive and silently copy all the documents from another drive to the (ASD) AppStorageDirectory.
You could also download your media files to the AppStorageDirectory as well.
When my app gets updated I have a function that deletes obsolete files from the ADS and leave the files I need to persist untouched.
Here is a snippet that reads available drives and looks for a specific named drive and then creates an Array listing all the files which can
then be copied using SOURCE.copyToAsync(DESTINATION)...
var os:String = Capabilities.os.substr(0, 3).toLowerCase();
var currentDrives:Array = (os=="mac") ? new File('/Volumes/').getDirectoryListing() : File.getRootDirectories() ;
var fileList:Array;
var fileCount:int = 0;
var fileListArr:Array = new Array();
for each(var file:File in currentDrives){
//trace ("Drive: " + file.name + " Size: " + file.size);
if(file.name.toString().indexOf("KnownNameofDVD")>-1){
trace ("Drive: " + file.name + " Size: " + file.size);
fileList = (os=="mac") ? new File('/Volumes/'+file.name).getDirectoryListing() : new File(file.name.getDirectoryListing()
for(var l:int = 0 ; l<fileList.length; l++){
//trace(fileList[l].nativePath)
fileCount++;
fileListArr.push(fileList[l].nativePath.toString()) -
How to add the push button on the apllication tollbar of IL02 tcode
Hi Friends,
I have to add the push button on the application tool bar of the IL02.when that push button is pressed then some operation to be performed.Could you please suggest how to add.Is there any screen exit if yes what is that.
With out screen exits if there is any way ?
Thanks and regards,
shylaHI Vicky ,
if u want an interactive ALV report , there are lot of forums already having the solution for that , but let me give u the solution anyway.
In the function module "REUSE_ALV_GRID_DISPLAY" , import parameters
I_CALLBACK_PF_STATUS_SET = 'FLIGHT'
I_CALLBACK_USER_COMMAND = 'BUTTON_CLICK'
has to be supplied to this function module . The PF status is where u hav created the two buttons , that PF status has to be given here .If the user clicks on the button then it is handled by the form routines . Inside the sub-routine based on the button the user has selected u could perform the action.
FORM FLIGHT USING RT_EXTAB TYPE SLIS_T_EXTAB.
SET PF-STATUS 'FLIGHT' EXCLUDING RT_EXTAB.
ENDFORM.
Here the "Flight" is the PF_status .
FORM BUTTON_CLICK USING UCOMM type SY-UCOMM
SELFIELD type SLIS_SELFIELD.
CASE UCOMM.
WHEN 'BUTTON!' .
write ur code for button 1.
WHEN "BUTTON"
*Write ur code for button2 .
end case.
endform.
for any queries reply back.
regards -
How to assign Line Number for Lines when click on Add More Lines
Hello All,
Kindly help me to assign line number for the lines which are added through Add More Lines button on an Advance table. If user clicks on the button Add More Lines then there are 5 lines get inserted at a time but I am not able to handle the line number for them.
Similarly, if user delete any of the line then I need to re-order them.
Kindly help and share if there is any sample code.
Thanks,
SandyHi,
Check if this link helps you :
Re: How to display serial numbers in the results table region
--Sushant -
AIR application crashes at certain point in windows vista
Hi Dudes,
I am facing a problem in Window vista. It always crash when we open the window component using Adobe AIR. I am creating the Dynamic window and adding the child component as window.rawChildren.addChild(object) like this.. we made the setup , it is running perfect in all OS except Windows vista 32/64 bit.
When we work with our AIR application in conjunction with our own h/w product(Tablet Driver).[without connection of Tablet slate with PC it works fine but with it not].
S/w Details:- AIR Installer above 2 and SDK above 2.
OS- Win-Vista 32/64 bit.
AIR application crashes at certain point and shows the error like:-
Problem signature:
Problem Event Name: APPCRASH
Application Name: GTMP.exe
Application Version: 0.0.0.0
Application Timestamp: 4bde2f02
Fault Module Name: Adobe AIR.dll
Fault Module Version: 3.1.0.4880
Fault Module Timestamp: 4eb760e8
Exception Code: c0000005
Exception Offset: 003ca9be
OS Version: 6.1.7601.2.1.0.768.3
Locale ID: 2057
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
I found one more error in debugging mode..the Alert message is
Microsoft Visual C++ Runtime Library
R6025 -
pure virtual function Call.
As per my view it is about some .dll and .CPL file makes some issues with AIR Frameworks is it? !!!!..
Please give some ideas to resolve it.
by
BeerahamedkhanCould you try this against the released 3.2 version of AIR and our 3.3 beta to see if it still occurs? If so, please open a new bug report on this over at bugbase.adobe.com? Include any sample code or application to help us easily reproduce the problem. If you'd like to keep your code private, please feel free to send it to me directly at [email protected] In addition, if you can give us a .dmp of this crash it could be very helpful.
Please post back with the URL so that others affected can add their comments and votes. -
How to Add Input Values into a XML in Flex AIR Application
I need a help, now I am developing a flex windows AIR application, in this I am displaying data using a xml file,
I have some input fields in my application,if the application user filled the input field and press submit button, the inputs
Should be stored in that xml. How can I do this using flex, can you anyone please provide me a sample file with tutorial.
Thanks in advance
Vasanth,
ChennaiYou can use the "+" operator which is both the addition (number) and concatenation (string) operator. JavaScript makes the decision about how this operator will work by the type of the value of being processed. Two numbers JavaScript performs addition, character string and number, number and character string, or 2 character strings then concatenation.
If you just use the '+' operator and spaces, you will get extra spaces unless you add code to allow for null fields and adjusting the spacing or other punctuation as needed. You may also need to force numeric values to character stings or you might end up with an addition and not concatenation.
Adobe provided a example of a funciton to properly join 3 fields with full versions of Acrobat:
function fillin(s1, s2, s3, sep) {
// Concatenate 3 strings with separators where needed
// convert passed strings to a string value
s1 = s1.toString();
s2 = s2.toString();
s3 = s3.toString();
// assign a numeric value for presence of a given string(s)
var test = 0; // no passed strings
if (s1 != "") test += 1; // s1 has a value
if (s2 != "") test += 2; // s2 has a value
if (s3 != "") test += 4; // s3 has a value
// return appropriate combination based on passed strings
if (test == 0) return ""; // no stings passed
if (test == 1) return s1; // s1 only
if (test == 2) return s2; // s2 only
if (test == 3) return s1 + sep + s2; // s1 and s2
if (test == 4) return s3; // s3 only
if (test == 5) return s1 + sep + s3; // s1 and s3
if (test == 6) return s2 + sep + s3; // s2 and s3
if (test == 7) return s1 + sep + s2 + sep + s3; // s1, s2, and s3
Maybe you are looking for
-
I'm trying to update my iPhone and it's connected to my computer through the USB port, but my iPhone is still saying to plug it into iTunes. How do I fix it?
-
BPM in iTunes - How Does It Work?
Hey people, i was wondering if anyone could help me with the BPM Function on itunes. i have it in the bar at the top, but how do i get it to read the bpm of all my songs? do i need to play all the songs all the way through? (9000+ tracks will take a
-
Kodo.rar in B5 has same problem as in B4
Hi guys, The dereference issue in B4 (which is not in B3) is still in B5. The stack trace and my code (which is a hacked version of your code) is below. David Ezzio My code that looks for CF: private ConnectionFactory getConnectionFactory() // this t
-
Blank display even though the power is on
Got N73ME, after the LCD replacement my phone turned on but the display is blank. Can receive or make a call but can't see anything on the screen even though the backlight is also on.
-
i can't accessing itune store