I have an application I'm building. It a sort of diagram builder. Now how can I get it to save a bitmap of it locally (not sharedobject). Or even a xml file for saving or something?Program is preferably run on local client's computer.
I'm having a difficult time finding any ActionScript that will do the trick of saving an image during runtime.
It's a Flash application where the user can design something, then send it in (to me) for publishing (I figured the best way to do that would be to take a picture JPEG of their finished design using some sort of ActionScript and then save it to my Web Server). I've searched around and found a few examples, but none of them seem to work
Is it possible to make a feature that allows the user to save as swf?
lets say the user drag and drop something unto the stage.. the user got some sort of timeline to control the tween with.. the user make a second keynote. and moves the object earlier draged onto the stage, so now if user press "play", the object will move.. and now the 1million dollar question.. is it possible to save this tween/movement as a SWF? (or avi or whatever..) as long as it can be loaded again later? - using xml is not an option in this case.
I am trying to use my Flash app to update an XML file when a new user registers. I thought I had found a method to do this using the FileReference.save function. From various searches I understand the function is not as simple as it seems but I cannot get my head around what I need to do to get it working.Here is the code:
ActionScript Code: var newUserToAdd:String = "<user> <name>Steve</name>[code]............
This is the error I am getting at runtime: 1061: Call to a possibly undefined method save through a reference with static type flash.net:FileReference. Are ther any prerequisits I am missing in order to use the function?
In AIR/AS3 Flex Mobile for Android project.How can I capture an "image" of whats visible on the view then just save that image as anything like jpg/pdf to the SD card?Basically a screenshot on Android using AS3.
I am using Flash CS4. I insert and build a SWF file just fine. In the component inspector there is a preview entry but there is a note that says it is only for development not runtime. It says to use ActionScript and the Export option. I have used the Export Option to create the thumbnail image but I have no idea how to setup the ActionScript.
I have an issue with downloading an image from a URL that is not getting updated at runtime. I'm using a URLLoader to download the file initially at the start of the app from some URL, then later on there is a call to the server which re-compiles the image into something else. After that the image is being downloaded again from the exact same URL, but as far as I can tell it's not getting the updated version, but is getting it from the cache that flash creates.
If I restart the application after doing all of this it gets the correct image when it downloads at startup, but I cannot for the life of me figure out how to get it to download the correct image at runtime. Does anyone have any idea how this can be accomplished?
need to load an image(s) into flash during runtime. not sure where to start - want to assign the actionscript to a button. found the method "FileReference.browse()" and "FileReference.upload()", but not sure how to begin to implement it. also wanted to be able to scale the image and move it around.
I am facing difficulty in doing as below: I have created a MovieClip symbol, called imgOne_mc, out of a PNG image. I have also added an empty MovieClip symbol (with the name imgContainer) on the stage. Within the code, inside a Class, I want to attach imgOne_mc to the imgContainer, at run-time. I tried it in following way: imgContainer.addChild(imgOne_mc); But, it ended up with the error "Implicit coercion of a value of type Class to an unrelated type flash.display: DisplayObject".
isnt there a way to get an FLVPlayback component to display its FLV's first frame until it has enough frames buffered to start playing the video? I can add a preview to it that i can see while im authoring the flashfile the component is in, but it just shows up as a white frame for a second at runtime.. id like to get it to display its first videoframe instead of that. The component inspector assures me there is a way to do this using actionscript, but leaves me hanging on exactly how its done, or where to discover such information
I've been thinking about the possibility of using Flash to create designs through ActionScript and tools that I could use at runtime. Is there any way of saving the stage elements as an image that I can use for print output later, preferably as a vector image?I realise the better option would probably be to learn how to script in java script or another language that can be used with a drawing application such as Illustrator, but I'm curious about what sort of options I have to do it through Flash.
I'm trying to create an image reflection at runtime, using this code I found on the WEB. It all seems to work fine as long as I'm loading an image from the local drive, but when I try loading an image from a remote server, the reflection no longer appears.[code]
I want to change the image at click event.I change the source of the image on click but its not reflecting immediately it comes when any other event is fired.
In Flex, how to assign swf as image source at runtime, not embedding it.[Bindable] public var myImg:String;<mx:Image id="intImg" source="{myImg}" width="96%" height="96%" />In my application, I fetch image url dynamically from a web service call, and assign it to "myImg". But until I don't get the response from the web service call, I want to show a loader swf in image control above. I assigned something like:myImg = "assets/AS3.swf";and the path of swf is correct, but it doesn't show up.UPDATE:The code I've shown above works perfectly in a Flex 3 app but the swf does not show up in a Flex 4 app. Is it because Image control has dropped the support for swf in Flex 4 ?
I am building a form builder in Flex 4.5. For that I need help regarding uploading image at runtime such that any user can just simply place cursor on particular location on image and is able to upload any image from the local file system.
I'm allowing the user to choose some image and load it at runtime.
Code: image.source = "../images/temp.jpg";
Why doesn't this do anything? I just see the little error icon like you see on a website when an image cannot be found. But I definitely have temp.jpg.
I cannot find an ActionScript 3 code example anywhere on how to load a PNG file as a flvplayback preview image and add it in at runtime." Assigning the preview property with the string of the PNG file refrence like 'video.preview = "previewimg.png"' does nothing. who to assign in ActionScript 3 a PNG file as preview file.
I want to save an image using PHP. Everything seems to work fine, but when I try to open the picture, I get an error message: "it is not possible to open the file, the jpg file may be corrupted".
ActionScript Code: var myBitmapData = new BitmapData(myLogo.width, myLogo.height,true,0x00FFFFFF) myBitmapData.draw(myLogo) // initialize the quality of jpeg and encode "bitmapdata"
I wanted to create a flash application like this [url]...but the only difference is I want to save my image into the default folder with different names. I don't need for prompting to save the image but instead it will automatically saved in the default folder when you click the save icon
as3corelib functionality is awesome and I have used the great tutorial at Henry Jones.com to create an example with a quick interface...
[URL]
Now this is a bit wierd here because it works on 70% of location tests but seems to be dependant on the internet provider allowing uploads. It doesn't work at my mates house but works at work and my house etc...
The second thing is that I need to know what the as is to save the mask to the server instead of downloading it to your machine.
In my Flex application I load an image into the Image control. After loading the image I can apply filters like color transform or grayscale etc and then I want to save the image with the filter applied. I am having trouble saving the image with the filters applied. With the following code the Image gets saved without the filters.However, if I use [code]...
I have created a customized dress up avatar using flash. Now I have to do that a registered user can make his avatar. After user creates his/her avatar how can I save the customized avatar in a database?
I have a Flash Application that sends an image (using as3corelib) to a PHP script that previews it in the browser, which works! But, I would actually like it to permanently save it the a server folder (uploads, etc.) instead of temporarily saving it. I can't find the right variable in the PHP that actually sends the image to a server so it could save it.