Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Exporting Pictures On Runtime



hi,my task in my final thesis is to create an animation with an overview map. by selecting an area this area is centered and fit to screen. then the user has the possiblity to start an animation.is it possible to create a button to export single pictures or the whole animation from this animation of a certain area?is there a function like a screenrecorder or a function create screenshots of the actual stage?ben



Adobe > Flash General Discussion
Posted on: 08/26/2008 04:29:42 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Drag Pictures In Runtime
how do we drag and drop pictures in runtime of a flash movie?

Loading Pictures At Runtime
Hi there,

Does anyone know how to load pictures -which are in the same folder as the swf- in a flashmovie at runtime. Links to tutorials on this subject are also appreciated.
regards, goaganesha

Exporting During Runtime
hi

ive been lookin at the very cool movie at http://www.flashkit.com/movies/Game..._-614/index.php

it enables you to build you own movie from various movie clips and arrange them in a timeline and then preview it.

i was wondering if it was possible to export the preview movie, or a certain movieclip in the movie during runtime. or would flash need its own built in renderer? i have no idea as ive never seen it done before.

hope someone can help
thanks

Exporting Swf At Runtime
Hi all

Been trawling the web for a while now looking into the bitmapdata() class and ways in which to export images from a flash movie at runtime.

Whilst Mario Klingemann's bitmap exporter is great and a good solution, For the project i am hoping to undertake it would be AMAZING if i could export out any movieclip within my app as a seperate swf.

This would allow users to dynamically create interactive image based assets, which can be saved to a server and reloaded next time they log in.

I have a feeling that im living in a dreamworld and this is not at all possible, but if anyone has any thoughts or experience on this i would really appreciate it.

Basically can you export a swf at runtime from a chosen movieclip instance?

Exporting At Runtime...
ok, i've got a bit of a puzzler: is it possible to export out of Flash at runtime?

that's to say, someone is on your site, they're in your snazzy Flash movie and they create something. they like it, and they'd like to save it out.

can that be done?

much of the data [well, all of it actually] will be held in a MySQL database, so in theory, i could get around Flash and do it some other way; say via PHP, but it's the layout that's the important thing, that's why it would be better to get it out of Flash itself.

any thoughts would be cool...

Resizing Pictures Loaded At Runtime
I'm writting a small script that loads pictures at runtime and then displays them in several sizes (2, actually =P). The thing is, I managed to load the pictures and everything, but I'm not beeing able to resize them to my needs. What I have so far is something like this:

//------------------------------------------------------
// Variables
//------------------------------------------------------
var pictureList:Array = new Array();
var vars:LoadVars = new LoadVars();
var picturePath:String = new String(".");
//------------------------------------------------------
// loadList
//------------------------------------------------------
loadList = function() {

var i:Number;

// Load list
for (i=1 ; i<=vars.picCnt ; i++)
pictureList[i] = vars["pic" + i];

// Load pictures
_root.createEmptyMovieClip("largeDisplay", 1);
largeDisplay.loadMovie(pictureList[1]);

// :: TODO :: TODO :: RESIZE HERE!
}
//------------------------------------------------------
// Main script
//------------------------------------------------------
// Load picture list
vars.load(picturePath + "/pictures.lst");
vars.onLoad = loadList;

I tryed using "largeDisplay._width = nSomething" but whenever I do this, the presentation just goes blank (no picture is displayed).

Does anybody know what's wrong?

Best regards

Exporting A Bitmap At Runtime?
I'm wondering if it is possible to export a "screenshot" of the stage to an image file that the user can download. for instance, they draw a picture, click a download button, and get a prompt to download the image they've drawn as a jpeg or what have you. I've found some sparse info about using PHP to send a bitmapdata object to the server (I think), but I need a little more help. I'm working with AS3 and CS3.

Thanks!

Mixing Sounds And Exporting To MP3/WAV In Runtime
Hello - this my first post here.

I'm creating a simple "groovebox" flash app, that lets the user create their own songs by mixing (simultaneously playing) a number of looped sounds as various "patterns", and then arrange and repeat these patterns to make a final song
I also want to let the user save this as as an mp3.

Is there a way (during runtime) to mix several, simultaneously playing sound objects into one and export/save that as an mp3 or wav etc ?

I don't really want to us Direct Sound as:
1) i don't know how, and
2) Mac users won't be able to use it.
But if it's my only choice then where do i find out about using it in flash?

Any guidance much apperciated, Thanks,
Peter (BuddhaBoy)

Using Scenes; Symbols Not Exporting At Runtime
Solved... not so much an error as a weary-eyed obvious oversight.

Using Scenes; Symbols Not Exporting At Runtime
Solved... not so much an error as a weary-eyed obvious oversight.

Exporting An Image At Runtime To A File
Anyone know of a way to export a region of the stage to an external file i.e jpg, like a screen capture. Or is there a component out there that will do it?

Thanks

Exporting PNG In Runtime Creates Green Artifacts
Hello,

I have a game project where you create a custom car and then you can have the image emailed to your email address. The image that is being exported has green artifacts in it.

The project is a multiple choice quiz with 6 questions. If you get a question right, you get to choose a car body (BMW, VW, Muscle Car). Second question gives you color choice. Third question gives you decal choice, etc.

So all of the artwork is located in separate layers and the script reveals the correct layer based on the choice made.

The artwork in the game is comprised of PNG files with alpha to be able to composite on the fly.

The artifacts that appear are green and red and appear within the image and not on the edges, so I don't think it has anything to do with the alpha channels of the PNG.

Here is a link to an outputted image:
http://www.swproductions.com/clients/car/car.png.zip

If anyone has any ideas or advice, I greatly appreciate it.

Thanks!
Scot

Exporting High Quality Pictures
hi, i designed a logo for a company and they wanted it in high quality so that they can print it. they said it has to be at least 300 DPI, i think that means pixels per inch, so i resized it in photoshop and they said that it needs to be in better quality or in vector graphics or something like that. what format should i save it in? or is there a way to make it better quality in photoshop?

thanks

[F8] Possible To Set Runtime Sharing Path At... Runtime?
After a weekend of pulling my hair out on this problem it looks like the paths for runtime sharing are relative to the HTML page, not the SWF. This is a problem because the client wants to be carefree in distributing the SWFs around the server. (In fact is demanding it.) So I need a way to set the runtime sharing path at runtime.

Or put another way...
"child.swf" is looking for fonts and graphics in "master.swf" If I move them all (including "master.swf") to some/random/folder/ and embed them from a HTML page at /a/different/folder/ the linkage breaks, even though the files load fine. (The paths to the SWFs are sent via XML.)

Any ideas? I really can't hard-code this and I probably can't compile new versions each time they feel like moving stuff around.

Worst case I'll skip the runtime sharing, but it would make the files needlessly big and slow.

(Publishing to Flash 8 AS2)

How Do I Preload Runtime Shared Libraries Without "import For Runtime Sharing"?
Hi, i have a big shared font library. I want all the font symbols to reside in fonts.swf. I have a loader.swf loading main.swf, and fonts.swf. Even though fonts.swf loads completely, the fonts aren't available to main.swf. I don't want to choose import for the font symbols in main.swf, because that will make Flash compile fonts.swf every time I publish main.swf, won't it? How can I get main.swf to use fonts in fonts.swf without "import in first frame"?
Thanks!

FS Commands During Runtime (not At Runtime)
ignore this, I figured it out !

FS Commands During Runtime (not At Runtime)
ignore this, I figured it out !

Exporting Image Created With Flash.. Overlaying Image With Text Then Exporting As Jpg
Is this possible? Say I have a user insert certain text onto a image using flash which would not be hard, but then is it possible to export the image as a jpeg for the user to download? The seems impossible but I figured it might be possible.

Links To Pictures In Pictures?
hey

im new to flash, but a quick learner.
i came up with an idea for my homepage, but it seems rather hard to make for a beginner, so im asking for some help.

One of the homepage i manage, is a company where you can get riding tours. we have a route we use for each tour.
i figured out that showing the route on the homepage would be nice so people could have a look at where they are going.
now. the flash i need to make is... i have a picture of the route in jpg. in that picture i want to make small circles on the route so that when you move the mouse over the circle, a picture is shown another place on the screen, of the exact location on the route. so said very short. i need pictures to be displayed when the mouse is over a circle in a jpg file.
I hope you can help me.

Thanks in advance.
Suneee

A Way To The .swf Name At Runtime?
Hey all,
I'm working on something that needs to get the name the swf
its running inside of. I realize I could just store the name
in a string but I'd like to do this through detection dynamically.
I'm needing a variable along the lines of _root.SWFFileNameIs;

Any thoughts ?

Thanks
Chris

SWF TO JPG _ Runtime
Do anybody have any idea about how to convert swf into jpg at runtime.

Actually my task is creat a photo album in flash which user can develop by dragging and dropping different pictures, graphics etc...and after they finish creating their page

I got two ways for that but none of them gives me solution.

1st way
--------
I got a dll, which after incorporating in .NET framework converts single or multiple frames into jpgs at runtime. But this solution only converts the frames kept only on the root. Whereas I want to specify exactly which movieclip I want to publish as jpg.

This is the link http://www.freedownloadscenter.com/P..._To_Image.html


2nd way
--------
This solution requires PHP, which i cant have on my hosting platform.
This is the link


PLEASE GUYS HELP ME OUT...

Why Is My Swf So Big At Runtime?
hi all,

I have a swf http://click2install.com.au/drafts/water/ it has 4MB of images in it that simulate a video of water. The SWF is 550KB but when i run the swf standalone the flash 9 player settles at around 185MB, when i run it in firefox, firefox settles at around 220MB (which is about the same as firefox with google loaded is about 30MB)

Why is it so large at runtime when the swf is only 555KB?

Is there a Flash profiler i can use to see what is happening with memory assignment?

The only code i have on the fla is as follows; (this is on the first frame of the root timeline, so its only called once)


Code:
stop();

_water.stop();
_root._direction = 1;

clearInterval(intBack);
intBack = setInterval(playWater, (1000 / 25));

function playWater(back:Boolean):Void
{
if ((_water._currentframe + 1) == _water._totalframes)
{
_root._direction = -1;
}
else if ((_water._currentframe - 1) == 0)
{
_root._direction = 1;
}
_frame = _water._currentframe + _root._direction;
_water.gotoAndStop(_frame);
}
the _water movieclip is 121 frames long and has a jpeg on each frame that are ~3 -6 KB each on the filesystem.

Any ideas would be great, especially a flash memory profiler of some sort.

regards,

Maurice

Using MC's At Runtime
I am wondering if there is an easier way to run movie clips in the library at run time.  I am currently using two methods.

1) putting a movie clip that consists of a transparent square on the stage & when I want the mc to run - I just use an attachmovie handler on the transparent square so my mc runs in the appropriate place.
2) I have the mc on the stage on frame 1 but just transparent & when I want the clip to run I sent AS commands which make it visible.

Is there an easier way to get my mc's out of the library and on the stage where I want them at runtime?  please help.

Runtime Fps
I have create animation of 30 frame, and the fps is 24, after 15th frame i want to change fps 24 to 12 (runtime), then is it possible, and if yes then how.

Set Framerate At Runtime
Hello ppl,

anybody knows howto set framerate at runtime? Or maybe a tutorial which could help me out?


Thanx in advance!

Runtime Error?
Now, when I click the "Click Here" at the end of my movie, I have found that a "Runtime Error" appears...? Anyone know what this is and how I can fix it - and why this is happening?

http://www.BillyJoelMusic.com/ClassicalMusic2.shtml

(I also have "Errors On The Page" on the page that I am clicking into from my movie. I don't think it has been there before, is this from Flash?)

Thank you!
Dan from Long Island
[Edited by Dan6971 on 07-08-2002 at 09:25 AM]

Flash To Jpg At Runtime
I have a bit of a problem. I built a character in flash that users, with the aid of some butons, can dress up (with clothes that are mc) .

What i want to do is make it possibile for the user to save his work as a bitmap file (lets say *.jpg).
To put it in other words, i want to be able to make a screenshot of the users' work.

pls help

Runtime Sharing :: Url?
Do runtime shared library symbols NEED to be posted on a server with a fully qualified URL in order to work? You can't just use the name of your library swf if it resides in the same folder as your other SWF's?

Textformatting @ Runtime?
Hello agains guys your help is once again required

I have created a simple flash comments log for my site. I am able let the user to set wether the font is bold, italic, or underline. easy peasy
anyways. How do can i set the other options like fontsize justifcation color etc..

Like the submit form for this post.

Can anyone point me to a good tutorial or fla that can help me out

cheers

Display .bmp At Runtime....?
I'm trying desperately to display a bitmap using actionscript, but the loadMovie statement does only seem to work on jpg's. I've tried browsing the net without success.
Can anyone please enlight me on this issue....!?!?!
Thanks, E.

Including AS At Runtime
Ok, so I realize this is a bit of a 'Holy Grail' for Flash - the inclusion of AS at runtime. The question of how has been raised many times over the years, but to my knowledge, no work-around has surfaced aside from loading dynamically 'generated' SWFs.

Given the abundance of third-party apps and the wealth of knowledge/experience on this board, I believe there has to be a way to do this.

The real issue as I see it is the conversion of AS in text format to Flash executable code.

1. If the 'generator' model is used (text doc is converted to a SWF), what is the best way to go about this? A quick/compact client-side method?

2. If the code is loaded into a SWF as a text doc or XML, what are some possible approaches to parsing it into executable code? I recently read that Flash references it's functions numerically. This would suggest the possibility of passing numbers and arguments along with some pre-established delimiter/structure to generate simple function calls.

3. If code is loaded as XML, would parsing it into executable code be even more realistic if an XML based programming language like Water/ConciseXML is used? The language structure/tags could be translated into function calls.

In approaches 2 and 3, the "functions" parsed into the SWF would be stored as strings/arrays. Converting these strings into usable code would require a fair amount of local programming and the process would have to be repeated every time the "function" is called.

Any thoughts or solutions?

Thanks

Color At Runtime
Help me I'm going mad.

I want to randomly change buttons color at runtime. I will takecare of the random part latr, what I want to learn now is how to change colors or tint.

When I create a button and enter this code, everything works fine:

On (release){
Button01.setRGB(0x000000);
}

And, as expected, when I press the button, the "button01"'s color changes.

But what I would want is something like:

onClipEvent (load) {
Button01.setRGB(0x000000);
}

Wich would change the Button01's color without the user having to click a button. But that is not working!! I'm a newbie..Anyone can help?

Runtime Include
Is there anyway that I can use an #include (or something like it) and have it update during runtime?

I have PHP generating a .as file from a mysql table. Based on the table data it generates buttons and puts actions on them. It all works perfect except that I have to re-publish every time someone updated the database.

I can load variables during runtime no problem, I would think that throwing some actions in there should be possible too. I would really appreciate any comments whether they are positive or not.

How To Get Value Of A Movie In Runtime
I am working on a flash paint program. Its working fine when choosing a new color and filling in the shapes. I want to save the filled color in database. How to get the color value of a particular shape when someone clicks on a shape and fills it with chosen color.

Thanks for any help
Sherly

Runtime Sharing
Hi
I have one swf (main.swf) with a list with let's say 20 buttons, each of which will load an image into a container to the right of that list.
Since there will be 20 images I thought I would stream them in order not to have to load a 800KB file.
So I have another SWF (pics.swf)loading silently inside the main swf with all the pics in the timeline every 5 frames, and in every keyframe an action to make visible the button that calls the corresponding pic.
This way the buttons show "loading image" and when pics.swf stream every button is make clicable and displays "image loaded".
I have no problems with this part, but with what's next.

Buton1 must be able to call pic1 from the library of pics.swf and it must appear immediately since that pic is already loaded (I guess)
I think I must use attachMovie but I don't know how to do it properly.
Also must the pics be inside a MC? Do the pics have to be exported for runtime sharing?

Someone who has done this before may be can point me to the right way.
Thanks

Set Colour Of Mc At Runtime With AS?
Hi!

How can I set colour of a mc at runtime with AS?

Thanks!

Multilanguage Runtime
Is it possible to load fonts and use them at runtime?
I'm developing a web site that should be able to change language by loading data from apropriate xml file.
I managed to do that by using _sans (I managed to show correctly turkish, slovene, serbian(cyrilic), chinese and greek in the same text field).
What if I wanted to use different font for each language but that font would not be embeded in main flash file?
I tried many different methods, loading swf's with embeded fonts or swf's that had fonts inside the library but without any success. Is this possible?

Runtime Components
Wrote an AS2 class.
Generate an object in my main .fla.

Problem is, unless I use _root, the component inside the class won't show up in the test movie. My traces work fine.

This is my class:

Code:
import mx.controls.DataGrid

class SpmUI extends mx.core.UIObject {

public function SpmUI() {
init();
}

public function init():Void {
trace('Hello, this is ' + _level);
this.createClassObject(DataGrid, 'dg', this.getNextHighestDepth());
}
}
I've tried "this._parent" to no avail.


====
ALSO
====

If I try to "setSize" of the datagrid, I get an error saying "dg" is not a method. HELP!!!!

Add Code At Runtime?
Say I wanna add a button at runtime using CreateEmptyMovieClip and Bitmap APIs..

Is there a way I can program it at runtime too??


Like if I wanna generate a Send button.. But I dont want to create it before the movie actually starts playing..

Is there a way to do this? like creating a class... or even it could be a created component?



I need to specify code at Runtime somehow

Editing As At Runtime
Hi, i am making a Dynamic flash application, and would like to know if there is a way to edit the swf's as at runtime?
if so how can i do this, and do i need external files (ie php .ect)
Many Thanks

Erasing At Runtime
hi there,
can anyone help me in this ?

i have 2 images on separate layers. i need to work it in a way that if somebody click & erase on top layered image, it should disappear slowly slowly (as somebody erase words on blackboard - need same effect) ... and bottom layer image should be visible in the end

am using flash cs3 (actionscript 2).

any help appreciated.

thanks

Swf To Jpg _ Runtime Conversion
Do anybody have any idea about how to convert swf into jpg at runtime.

Actually my task is creat a photo album in flash which user can develop by dragging and dropping different pictures, graphics etc...and after they finish creating their page

I got two ways for that but none of them gives me solution.

1st way
--------
I got a dll, which after incorporating in .NET framework converts single or multiple frames into jpgs at runtime. But this solution only converts the frames kept only on the root. Whereas I want to specify exactly which movieclip I want to publish as jpg.

This is the link http://www.freedownloadscenter.com/P..._To_Image.html


2nd way
--------
This solution requires PHP, which i cant have on my hosting platform.
This is the link


PLEASE GUYS HELP ME OUT...

Blur During Runtime
Hey guys,

Im having problems making the flash 8 blur effect occur during runtime using AS. I want the background of our site to work the same way as www.redbullracing.com, where you rollover a text box and the BG blurs, but if you roll onto the BG, it will sharpen. Also having no hand pointer when you rollover.

I found some code online, but it dosent seem to work. I also have to create an array using bg1 - bg5 for my bg movieclips, and im not too sure how to do that.


my code... (i placed it on its own layer on frame of the timeline, if I tried to include it into another actions layer, some of the other code wouldn't work) This code would work when it was in a test file I made, but when i put it into my project, it wouldnt.

Code:
import flash.filters.BlurFilter;
var blurFilter:BlurFilter = new flash.filters.BlurFilter();
var filterArray:Array = [];
filterArray.push(blurFilter);

_root.bg1.onRollOut = function() {
this.onEnterFrame = function() {
blurFilter.blurX += 1;
// increases the blur in steps of 5
blurFilter.blurY += 1;
this.filters = filterArray;
if (blurFilter.blurY>=5) {
// 40 is the max amount you want things to blur
delete (this.onEnterFrame);
}
};
};
_root.bg1.onRollOver = function() {
this.onEnterFrame = function() {
blurFilter.blurX -= 1;
// decrease the blur in steps of 5
blurFilter.blurY -= 1;
this.filters = filterArray;
if (blurFilter.blurY<=0) {
// when it hits 0, its no longer blurred...therfore stop bluring
delete (this.onEnterFrame);
}
};
};
Thanks alot!
Clint

How To Get A Path Of Swf At Runtime?
hi,

I want to display swf file by getting path from the user at runtime,
like in a text fileld he should type a file path of the local system ,then by clicking a button it should open that swf file.

Runtime Encapsulation With AS2
Hi,

I'm needing to secure a flash app which is currently in AS2. It is 'encrypted' with SWF Encrypt prior to deployment, but this doesn't seem to be a whole lot of use...

Turns out that if you create an empty Flash movie, and load in *any* other existing flash app, you can inspect, instantiate, and override all classes, methods, and properties (private or otherwise), but simply running a for/in loop over _global.packagename

Try it for yourself... doesn't matter if your target clip is 'encrypted' (using the term loosely) or not.

So... does anyone have any suggestions for how to protect an AS2 movie in any way? Would moving to AS3 overcome this massive security whole?? Do any pre-compile-time code obfuscators exist so my classes/methods/properties will be less obvious as to their usage?

Any suggestions will be greatly appreciated!

thanks
Marcus.

Runtime Typing
For the project im currently working on i need the text to appear to be "typing" on the screen, with one of those old-style block cursors (Something akin to the READY screen on the C64).
Problem is, im not that sure how to go about it, would it be easier doing this with a flashing cursor MC moving it across a line of text on the timeline, or with some sort of actionscript trickery using a dynamic text field?
Im really stumped about how to get this working, any suggestions would be brilliant!

Timer Runtime
Is it possible to find out how long a running Timer has been running? I can't see an obvious way to do it.

Adding Mc In Om At Runtime
How could I add a check mark mc into a menu mc at runtime?

Flash To EPS At Runtime
Hi,

this is my first post, is there anyone who knows that how to generate EPS(Encapsulated post script) file at runtime from flash using ActionScript.

...... I know it can be done inside the flash by "export movie" command. But how in ActionScript. Please help me...

thanks

Copyright © 2005-08 www.BigResource.com, All rights reserved