ActionScript 3.0 :: Upload Excel Doc And Grab On Column?
Dec 18, 2009I need to allow the user to upload an excel file of simple part numbers so that Flex will grab those part numbers and use them in a query.
View 1 RepliesI need to allow the user to upload an excel file of simple part numbers so that Flex will grab those part numbers and use them in a query.
View 1 RepliesI want a user to press an excel button and get prompted to download an excel file. I normally do it like this:
var dest:String = excelEndpoint;
var request:URLRequest = new URLRequest();
request.url = dest;
fr.download( request,'Locates.xls' );
fr.addEventListener(HTTPStatusEvent.HTTP_STATUS, handleStatus);
fr.addEventListener(IOErrorEvent.IO_ERROR, handleErr);
[Code]...
I have a Flex 4, mx:DataGrid with the following (pertinent) properties set:
width="100%"horizontalScrollPolicy="off"
I have the minWidth set on all of the DataGridColumns and the width set on one of them. If I simply maximize/minimize the display (in browser or stand-alone flash player) of the application, the columns scale up and down nicely. But if you grab the edge of the application and drag it to make it bigger, only one column grows really big. When you drag the size down again, the one column remains big, but all of the other columns get squished way down.
I want to know column index of header in AdvancedDataGrid when a user clicks on header - either left click or right click.
View 1 RepliesIn Flex, using AdvancedDataGrid, I'm trying to achieve a drag and drop of one row's column data to another row's column or the same row but different column. Is this even possible? I've been googling for hours and all I can find are drag and drop whole columns just to rearrange their view order.
View 1 RepliesHow to make a table in Flash and enable the column headers on the table to sort column on click?I have seen some tutorials with mySQL but I'd like to start with something basic. Is a sortable table possible using just Flash and AS 2.0?
View 1 RepliesCan you use the FileReference.upload() function to upload files to Sharepoint or do I have to use the SP web services? This is without adding your own ASP.NET Web Services, just using the built in SP Web Services.
View 1 RepliesI am creating flash uploader and want to start 10 uploadings at time.But flash upload only 2 files on domain at time, other references wait for something.In IE with ActiveX Player limitation is about 6 files at time.Is there any ideas how to change this limitation? For uploading I need to use FileReference.upload without creating URLRequest object from file data.
View 1 RepliesEDIT: Reworked my code a bit and decided to throw out URLLoader in favor of the ile.upload() method.Now I'm stuck again >_<Here's the code I currently have, stripped down to bare-bones:When I drag-drop image files onto my app, here is the trace log that gets returned to me:
[object Document] called.
doDragEnter() called.
doDragDrop() called.
[code]......
Okay, so I am calling my scripts from the folder "php/" Thus, my FileReference calls "php/upload.php" to upload. However, my uploads are in "uploads/" and not in "php/uploads". When the PHP script is called, it apparently ignores the caller (the SWF file) and looks for uploads in its own directory (the "php/" folder). It may be a PHP question, but how do I reference the uploads folder as being in the parent directory of the php files in my PHP script?
View 1 RepliesI've been trying to configure uploading and I've been getting an error 500.I'm running a server on Apache2 with php5+ installed. I'm curious to why i keep getting an error.[code]I added those to my .htaccess file
View 1 RepliesI am using a PHP upload to upload files to server. I have a loop for the 5 files to upload....
ActionScript Code:
if (PDFFiles[i] != false){
PDFFiles[i].upload(uploadPHP);
}
As the loop runs quicker than PHP can upload, the success of....
ActionScript Code:
function fileUploaded(e:DataEvent):void {
trace "Success"}
....can get out of synch. It doesn't cause me any real problems but is this bad form? Or am I better to upload one file the wait for the PHP to return success before uploading the next one?
For a site I'm developing with a user login that uses cookies to store the session ID, a separate section of it uses Flash to provide content and such. Is there some way it can access the cookies that were set the by login? The name of the cookie will not the be same every time, as it is randomly generated, as well as its value. I then need to send the name and value of the cookie back to a page on the server to do additional stuff. Anyone know how to do this? Note that I didn't write the Flash interface, an the person who did doesn't know how to do this.
View 1 RepliesI am trying to grab a webpage with actionscript, but keep getting this error
[Code]...
My new project consists in setting a CD containing a structured data sheet (CVS, XML or Excel) and a serach engine. The idea is to allow the user (even not connected) to make searches live on the CD. There will also be a up-to-date version of the data on internet so if the user is connected, the application will prioritary load the online data.I was thinking at using ACTIONSCRIPT and XML.My questions are:1- Is ActionScript + XML a good choice?2- Is it possible to think at PHP + XML (so how to embed PHP on a CD without a sever?)
View 1 RepliesI have some buttons named bt1, bt2, bt3 etc
They have a common function for when each is clicked called buttonclicked.
Within the function buttonclicked, I'd like to grab the number off the end of each button name so that I can compare the number to a global variable I have called global.data.clicker
so...
if (number at end of event.target.name == global.data.clicker) {take action...
Is it possible, and if so, what code do I need to put in the first part of the if statement to make it work?
How to create a script of some kind to grab a still picture from a live stream and save it as a JPG file?
In this way a cron job can tricker the script and thereby grab a picture fx every 10'th minute and the picture can be shown on a website so people that are not attending can have a look into what is happening in the live stream.
I need to grab values from the querystring and inject them into a getURL(""); snippet that's in the on (release) {} for a button.So if the URL that contains the embedded swf is
[URL]
I'd like to get that otherdomain.com and inject it. Something like
var returnUrl = "";
// do magic querystring getting
getURL(returnUrl);
*Edit: I need to snag the querystring because I don't have access to the embed code. It's being rendered by a third party (Articulate) and loaded into a frame. I do have access to the code that renders the frame html, which is why I figured query string would be the best route, and one button that's used in the presentation.
Note, I live in C# land, not ActionScript land so I most likely butchered the syntax. I just need to get this button working as a one off and I'll probably never deal with it again.BTW, I've seen the abdulqabiz QueryString object that's floating around out there but it kind of seems like overkill, like there should be something baked into the framework for this. I also lack the knowledge of how to incorporate this into my little button on (release) {} event
I need to grab a parent node in flex without an event listener.
View 1 RepliesI wanted to know if it is possible for AS2 to grab the base domain and set it as a variable. This would also need to work for any domain possible. For example for [url].. what ever the combination it would always return "yahoo". This would need to work with the domain the swf is being viewed on so the domain wont just be 1 domain.
View 2 RepliesIve just made a "browse" button with FileReference and it works well, now Im trying to "catch" the location of the file that you select and put it on an input text.
[Code]...
So far Ive tried with that code and works but ".name" only display the name and the extension of the file, and I need the full location.
how to to a grab website in flash? Like: [URL] were u can drag around at the content with your mouse by yourself and not using the scrollbars.
View 1 Repliesanyone saw some open-source or tutorial where u can grab an object and move it around and at the same time rotate the object deppending on the place you grab it. some physics maybe. like a cd-case moving on ice
View 10 RepliesI am trying to grab the attributes of a node, and can't target it.
Code:
<?xml version="1.0"?>
<header>
<scoreboard url="simpleScoreboard.jsp"/>
<background>
<folder url="media/headers/" count="10" prefix="header_bg_" suffix=".jpg" override="false" startTime="10" />
[Code] .....
Will trace the url attribute of the first node but I can't find the correct targeting for the node I need. I've been using AS 3 to do all my XML stuff but I can't use AS 3 for this project unfortunately and I don't really get it with AS 2.
I've been trying to find a solution through books and online about how on earth to highlight just the in-between and edge areas of the object tweens, and either delete a certain amount of them like you can with classic tween, or be able to grab those little diamonds and move them along the timeline.
Of course this may be a stupid question since the new tween is all about the OBJECT, and the motion line that it creates on the stage with the "ticks" that are keyframes, may be what needs to be manipulated like the object itself instead of the timeline. I'm not sure.
At One point I had a whole lot of extra frames hanging off the edge of my one motion tween--(after I copied & pasted frames) --I highlighted them to remove any portion of it, but it removed all the rest of my keyframes as well.
I've just started playing with arrays in MX, part of my project needs to have information from an array loaded into a dynamic text box one by one, ie
Click the button, text[0] displays, click again, text[1] displays, etc.
So all I have to do is grab the first index and add one each click right?
Can anyone point me in the direction, or throw me some code on how to grab a certain number of characters, or words from a variable ??
View 4 RepliesIs there any way to export the data from Flash to Excel.
Can anyone give me the reply for this solution.
store data to excel
View 7 Repliesi am trying to import to flash an xml file, generated from Excel. I got some tutorials from internet but the format of xml file from excel it's different and i can't manage to access data from it. if i type trace(xmldata); it shows me the full content of xml file. But how can i acces the correct data if in the xml file it is written:
<Row> <Cell><Data ss:Type="String">CellName</Data></Cell> <Cell><Data ss:Type="Number">CellValue</Data></Cell>.