Ive 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.
I created a simple button that displays an error messeage: "error opening 'url" when I test the movie, but does play and opens in browser after publishing. However, it won't open in the browser in a different location. I pasted the html code in a web page but it doesn't work there nor opens in the browser in a differnet location from where it was originally published and saved. Why is that?
Does anyone know how to get a script of some kind to grab a 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 got a request today conserning .txt files.What I want to accomplish is to grab information from a text file and save them in variables (or an array, depends).Whats the best way to do this, and whats the do's and don'ts?I'm planning to use the LoadVars class to pass the variables through and i've got a working test, but isn't there a more efficient way to do this?
I want to know the 'file path' when an user selects a file from 'any location' on his hard disk. I like to know is it possible to fetch the entire file URL instead of the file name alone?
Code: var fileRef= new FileReference(); fileRef.addListener(mylistener); mylistener.onOpen = function(file){ [Code]....
All I'm trying to do is load an external .swf file into a precise location on the stage of my existing Flash file. I've spent an hour and a half on this site search and found nothing. What do I add to my loadMovie command to place the file at specific x,y coordinates?
I am trying to make an object tween from its starting location to the location of a mouse click. I have a script, but it has a very annoying ease to it.I would LIKE the object to mantain a certain speed during while traveling from its starting location to the mouse click location.
Is there a way in as3 to trace out the swf file's location. I.E. if the swf is located at C:/documents and settings/Desktop/folder1 How do I get the swf to return that path?
I'd like to add an item to a particular location in an XML file. Location of parent node is given by string variable "itemtoaddto" and the XML file is given by "myXML":
how to change the default location that comes up when saving a new flash file.
For some reason, when I go to save a .as file that i've created in flash it choose some deeply buried folder from a project I haven't worked on in ages. I have no idea how it got set up to do that, but if possible I would love to have it default to the last location I saved a file.
I'm trying for making out application for vod.I want to know how a user can make his file readable by the AMS for vod when file is at different PC and AMS( includes swf and HTMl files) is at different PC.
I'm attempting to create a template with one simple change to the file output location. I need the .swf file to placed in a subfolder, i.e. "output/filename.swf" Instead of the default "filename.swf"My problem is, if I edit the output file name field in publish settings in any way, the export file name is now locked, meaning if i have used my new template to create 3 fla files, they will all be named the same thing and replace one another in the output folder i've created. (trying to eliminate the need to open the publish settings menu here)I was hoping there was a variable like ${filename} or something i could use, but cannot find something like that.
I cannot pre-view a flash movie in a php.page. Question, How, where, do i store a swf file name and location in mySQL database and then use this data to call it in the application?
So I have a .swf file that loads in xml and such. Now I want to have a flash file load that into it, but when I do the loaded .swf loses the location of its files to load?
So. File A - the loader File B - load swf File C - load swf xml file
All sit in the same folder if I open file B, it reads file C no problem if I open A that loads in B, it loses location of C and it dont load the xml? I am on access network files.
Is it possible to dynamically load an XML file but keep the location and name of the XML private ?I have an XML file that contains users names and email addresses. I would like a way to make it difficult for people to get access to this XML doc
Code: _xml = <xml><test>data</test></xml>; var ba:ByteArray = new ByteArray(); ba.writeUTFBytes(_xml); var fr:FileReference = new FileReference(); fr.save(ba, "1.xml");
I'm trying to do some restructing of a flash codebase, and I was wondering if anyone could clarify something for me as I'm unsure whether what I'm trying to do goes against a fundamental priciple of flash development or I'm being confused by the Flash CS4 user interface(I've got a java development background, so some of the interaction between fla files and the like is somewhat difficult at times to get my head around). I've done several searches but can't seem to find any similar problems, apologies if any exist.
Basically, I want to restructure my codebase and move my fla files around by putting them at a different location in the directory structure.
Existing structure: basecompany namecomponent name
where fla files are stored in base, and code is stored in company namecomponent name, and code in said location is in the company name.component name package.
What I want to do is move my fla files from base to component name for each individual project. The actual location of the code is unchanged, but the fla files no longer compile, giving me a 5001 error - package name does not reflect location. I'm assuming that this is because the relative location is different - as far as the fla file is concerned, the code it is referencing is located at component name, not company namecomponent name. Is it possible to make the CS4 publisher understand that the fla file is not at the root of the package structure, and if so how?
I'm constructing an enhanced CD menu in Flash. I'm going to be including some desktop backgrounds that I would like people to be able to click on and then save the file from the CD to a location of their choice.
Is there a way to do this - access the files system as you would when you choose a file to upload but instead are choosing a location to save that file too? And then copy the file from a Cd location to this chosen loaction.
Or alternatively is there a way to just open a pop up file window in a certain location.
Quick question here about variables in flash..Im loading the location of an XML file via FlashVars in my html document (I'm using the SWFObject to render the flash by the way). Anyhow I can pick up the variable on my root timeline and have it displaying in a dynamic text box but I need to get it inside a movieclip which is where my code is for the xml and I can't work out how to get the variable from the root timeline to the movieclip?
I am trying to track mouse location on the stage in a swf file with Action script. I found properties that appear to have x and y location, stageX and stageY as well as localX and localY. But I am getting compiler errors to the effect of attempt to access possibly undefined property: as follows: 1119: Access of possibly undefined property stageX through a reference with static type Class.
I'm building a site that was bought from a template house that has a flash piece in the header. I have Win CS4 and have been able to swap out the images and replace the text but I am having a hard time finding where I can edit where/how the text aligns/ends up. Here's the test location: FertilityTestSite
Originally there was text of varying lengths that slides in below each image aligning right to the play/stop button. I tried to get them to give me text of a similar length but they just want the phone number. So now the phone number slides in but because the original text was longer (except for the one that had a ph#) they stop at different locations where the original 1st character came allowing to align right.
So my question is how/where do I edit this action? Would this be [in] the ActionScript? I am a complete noob and have only gotten to where I am through trial and error. I was able to find and replace the text in Essentials workspace and I was able to swap images (update) by right clicking them in the library view and I see a text export in there too that I have a high suspicion is what I need to edit but don't know how to access it.
I've a flash AS3 based application that provides option to play/pause/record FLV files from flash media server. These files are only audio files. Now, I want to add a new functionality of inserting audio at a specific location.Like if the already recorded file is of five minutes duration, and I want to record 1 minute audio after third minute, the end result should be a six minute file with the new audio added from 3rd to 4th minute.
Because I was having so much trouble using packages in my other programs I created two simple classes to figure it out. I have placed these two classes in a folder named packageTest and even made a new path there in flash preference.
[Code].....
I am running them from a .fla file with packageTest.FirstPackage set as the document class. I receive the following error when I compile. 5001: The name of package 'packageTest' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:UsersDirkDesktopRuckuspackageTestPackageTr aveler.as
The error message I'm getting is as follows:5001: The name of package 'mvc' does not reflect the location of this file. change the package definition's name inside this file, or move the file. /Desktop/mvc/Model.as
I am trying to read data from [URL] location in my flash file which is residing on a server. But I am not able to get any data. No issues in coding - checked with a local copy. Command used is objMain.CCRSSXML.load("[URL]");
I've run into a strange error and I was wondering if anyone had experience with this.I'm working on a flash platforming game and I recently released a demo. I was having a problem with the getting the file to play correctly when I noticed an error:The file plays differently depending on where the file is saved. For example:Platform Explorer (http://jrjellybeans.net/platformExplorer.swf).This file runs fine. Platform Explorer (http://jrjellybeans.net/flashGames/platformExplorer.swf).This file opens up the level editor. Yet, I make no call to the level editor anywhere in this particular file.The thing is that the files are EXACTLY the same. Just saved in different locations.