ActionScript 2.0 :: Export Mc's Positions At Runtime In An External File For Reuse?
Jan 29, 2005
i'm trying to hardcode a complicated looping movement of an mc on the stage.the way i plan to deal with it is first, to use a guide layer to actually tell the mc where to go, and then save at runtime the sequence of position (x/y coordinates) the mc goes to to follow the movement. With this set of coordinates, i will reproduce the movement via actionscript instead of guiding.
View 1 Replies
Similar Posts:
Jan 29, 2005
i'm trying to hardcode a complicated looping movement of an mc on the stage. the way i plan to deal with it is first, to use a guide layer to actually tell the mc where to go, and then save at runtime the sequence of position (x/y coordinates) the mc goes to to follow the movement. With this set of coordinates, i will reproduce the movement via actionscript instead of guiding.
how i can output those variables into an external txt file from flash at runtime ?
View 1 Replies
Dec 30, 2005
I have one SWF file that I want to reuse and I want to load external XML files with it, is it possible to do something like this in the HTML:
Code:
<EMBED src="mymovie.swf?myFile=text1.xml" ...
then in the actionscript, get the file with something like this:
Code:
xmlData.load(myFile);
then reuse the same SWF on different HTML pages, ex:
Code:
<EMBED src="mymovie.swf?file=text2.xml" ...
Is this possible?
View 1 Replies
Nov 9, 2011
Is it possible to load an external SWC file (at runtime) and place them at the stage? Is it possible to refer to them by strings? For example: var sprite = getExternalLibrarySprite("sprite_name")?
View 4 Replies
Jan 17, 2010
[code]Now once I have an image externally loaded, how can I reuse that image? Like do I need to load it everytime or can I duplicate someMC?
View 4 Replies
Nov 7, 2009
I'm looking for a method to create and save a .swf file from a currently open .swf file while the second of the two is running.
My overall goal is to, with the click of a button, create a .swf that contains a certain MC that was already in the first .swf, then save the second .swf in a directory on a server that I have. I'm guessing it takes some server-side-scripting like php.
View 1 Replies
Apr 13, 2012
Is it possible at all. I've search around and it seems like its not possible. I know you can export png, jpg [url]... and pdf, but how about vector graphics?
View 1 Replies
Feb 8, 2007
can some one confirm if there are some issues when you export library assets and duplicate movieclips, when trying to have a getBytesLoaded preloader?
View 5 Replies
Dec 5, 2007
Is it possible to generate and save an swf file from a movieclip in runtime? Something like using the bitmapdata for raster images?
View 1 Replies
Mar 29, 2012
I'm designing a portfolio website that will showcase artwork that could potentially take awhile to load, so I'm using the code from that tutorial:
[Code]...
I'm using one of these, one image, per frame. I'll be adding more and more in the future. I'm still a newbie to as3 and I haven't completely understood the basics yet, so my question is this: how do I reuse the above code for a different frame without having to paste the entire thing with different names? I tried this:
[Code]...
View 1 Replies
Nov 5, 2010
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.
View 1 Replies
Aug 5, 2009
I m making a T-shirt design application in Flash.I made all the drag and drop stuff and now i need to knw is how can i export the design my customers made?Like in ma application users can drag n drop designs on their T-shrit,change its colour and all when when he press a button say "Print"...the swf shud generate a jpg of that design(that the user made) and send it to a php file(that estimates its rate and all) and saves another copy in my domain(like [URL]).
View 3 Replies
Aug 27, 2010
Summary: I don't quite understand how the import/export URLs for symbols in a runtime library work. I can't figure out how I can set them so that the runtime library will be properly loaded and accessible for other swfs to import from, if I want it to work both in a local environment (on my harddrive), and from a remote environment (on a web page).
Relative URLs seem to work great for the hard-drive case, but fail for the web page. Is there a magic way to set the relative URL to work from the web too? And/or, is there some way of manually loading up the RSL at runtime and making the importing swfs import from that loaded copy, rather than having Flash doing it behind the scenes based on the import URL set in the symbol? Following is a longish description of what I'm trying to do, and why... I'm trying to figure out if we can use RSLs to contain common UI controls for our next project. I'm running into an organizational issue that I can't quite figure out - how to get the RSLs to work in both a local development/debugging environment, and on a production web environment, with the same exporting/importing URLs.
Here's what my setup would look like. Say I have a main application main.swf, an RSL lib.swf, and a UI module dialog.swf. Main.swf loads or embeds dialog.swf. lib.swf exports some symbols that dialog.swf imports. On a local development environment, these swfs are found in folders like so:
[Code]...
View 1 Replies
Jan 22, 2007
I have thumbs placed on the stage. I create an empty mc to load swf. But my thumbs disappear from the stage when I test the movie ( html or swf) if I settle the _ and _y position of the empty mc.why the emptymovieclip positions affect the positions of my thumbnails?
View 2 Replies
Apr 6, 2008
I must be missing something. I'm trying to set up a Shared Library. I created one Symbol, set the Linkage to "Export for runtime sharing" and put it on the stage. Publish, looks great.
Whenever I create a second (or third or fourth) Symbol and set it to "Export for runtime sharing" it won't appear on the stage, and further creates havoc with the first Symbol already on the stage, changing it's appearance when published.
AND, when placed into a .fla that's accessing the Shared Library, the second or third symbol when placed on the stage also won't appear when I publish that file
The URL for all Symbols is the same, library.swf, and it's in the same directory as the
View 1 Replies
Sep 2, 2005
I was trying to do an animation where people can move object around and save. then other people, with different computers, can see the last modifications.I was thinking using the sharingObject remote, but does it work with all servers?I read I need a special one, flash development server or something.So, I had the idea to make a script that save the position of the objects to a file and realoading the animation it loads the variables from that file
View 1 Replies
Feb 11, 2011
I'm making a Flash animation in Flash CS4, using motion tweens to change positions and sizes of objects on stage. I frequently open the animation file and find a motion-tweened object has been moved to a new position from the one it was in when I last saved the file. All the frames in the tween seem to be affected. If I open the file again without saving, the object is still in the wrong position. I have had to redo or substantially correct a big tween several times. It's wasting time, and I can't rely on my work being in the state that I saved it last. I think the problem happens to the files when I open them after starting up Flash.
View 2 Replies
Oct 14, 2009
I asked this earlier but maybe I didn't give enough information. I am working on a website where video quality is very important and the client is delivering me the video already compressed. I then want to import it to flash CS3 and export it as .flv for progressive download with the media playback component. I have done all of this successfully in a sense that it all works but the video quality is not good enough, it's good but the client says it;s a bit grainy. I used the highest setting in Flash, on2 vp6 at 700kbs.
My question is what is the best file format (.mov etc) and what settings should the client use, so I can create the highest quality .flv export from their .mov file? Second question, I used an 8 second buffer but now the client is saying they don't want it to buffer at all. What are the other options besides progressive download, I have never delved into this before?
View 5 Replies
Nov 17, 2011
I am very new to ActionScript. I have a .fla file which contains the AS2 code for the frames. What I need to do is that I have to export this code as a separate file. There may be a separate file(or class file) for each frame code. Is it possible to me do it automatically without losing animation interactivity and functionality? Or is there any other way?
View 1 Replies
Mar 22, 2006
Is it possible to export text from a text field, which has been created in Flash and export it into an external file such as a text file or Word document?The idea is that information will be collected by the user into a text field within the swf. Hopefully, this information can then be exported into an external file which will allow the user to work on and edit at a later stage. It needs to be a separate editable document. Is this possible? I'm using Flash 8.
View 1 Replies
Apr 17, 2008
am trying to export/publish a swf of a dress up game I made so I can put it in Dreamweaver and upload it to my site but I keep getting this error message:"Error Creating Flash Movie File: Be sure the destination file is not locked or on a locked drive. Also, check that the file name is not too long".I am also unable to test the movie, it gives me the same error message.
View 3 Replies
Aug 11, 2011
I am trying to capture a still frame from an (any) external swf file, by using my own flash movie as a proxy to load it and hand information regarding the Stage onto javascript. I want to keep it as wide compatible as possible, so I went with AS2 / Flash 8 for now.[code]...
View 2 Replies
Mar 4, 2010
What do i specify in the "Source" field? Must it be the FLA file of the SWF file i'm importing? Or can it be left blank?
View 6 Replies
Jun 26, 2009
I usually lurk, but on and off over the past 2-3 months...I've been trying to solve a problem and I can't seem to find a good solution for it. Here is my problem: - I have a SWF that acts as a Shell. This shell will contain the Design Template, the functions/class calls to make it run, and a call to the external SWF that contains all the core code classes.
- My main goal for this setup is to separate the front end Design part (which can be edited and modified relatively easily) from the core code. Now the core code is something the person making the Design Template should not have to mess with. They call it and they are done; they can now use the classes for most of the functionality they will need.
- The problem is, when I change the external SWF with the core code and distribute it... the Design Template needs to be recompiled to get any updates the external SWf core code has made. I want this to be done at runtime so that the user will not have to recompile their Design Template when the core code is updated. - Now, I've seen some people talk about a runtime library... but you have to go into the IDE and set things up a certain way or something something... I don't want that. Is there a way to make all this work in actionscript?
[Code]...
View 6 Replies
Jun 25, 2009
Here is my problem:
- I have a SWF that acts as a Shell. This shell will contain the Design Template, the functions/class calls to make it run, and a call to the external SWF that contains all the core code classes.
- My main goal for this setup is to separate the front end Design part (which can be edited and modified relatively easily) from the core code. Now the core code is something the person making the Design Template should not have to mess with. They call it and they are done; they can now use the classes for most of the functionality they will need.
- The problem is, when I change the external SWF with the core code and distribute it... the Design Template needs to be recompiled to get any updates the external SWf core code has made. I want this to be done at runtime so that the user will not have to recompile their Design Template when the core code is updated.
- Now, I've seen some people talk about a runtime library... but you have to go into the IDE and set things up a certain way or something something... I don't want that. Is there a way to make all this work in actionscript?
Additional Notes:
- Yes, it must be an external SWF. My requirements are adamant about not using an .as file.
- From my tests (though a bit fuzzy and may be flawed) an include statement will work in runtime. Correct me if I'm wrong.
- I've seen some PNG encryption method for games suggested somewhere. I haven't tried this (because encryption isn't the main goal...), but in theory, would this make the code from an updated core code external SWF refresh in realtime without recompiling the Design Template SWF file?
View 0 Replies
Jan 3, 2010
I started exporting the swf with no problem, but the next day i done a lot of editing and adding content, so when i try to exported didn't work, my swf file disappear from my folder and every time i try to exported the swf when it pass about the 75% of loading disappear. There is any software that can expor fla to swf ?? why flash is not exporting the swf correctly?.
View 3 Replies
Sep 14, 2010
Ok. So heres what I am trying to do. I want one movie clip to follow another one that I move around with actions on the main timeline.The problem is that the follower clip is linked to a class file and I cannot find a way to find the players position.
[Code]...
View 8 Replies
Aug 11, 2008
Flash can compress .png files like Photoshop can compress .jpg files better than any other tool hands down. I have 77 .png files that are 1.8 .megs on my c: drive after I imported them and setting the file compression under the "File > Publish Settings" to 75% for jpg and published the .swf with all the .png on the stage the file size is 350K that's about 20% of the original file size of the .pngs downloaded file by file with 77 separate request.
I can create linkage in the shared .swf and test the movie with code in the shared .swf to add the movieclip holders for each:
.png to the stage but when I load the shared .swf into the main
.swf Flash acts like it can't create the classes based on the
Linkage I setup or that the MovieClip linkage doesn't exist.
I tried a test to have the shared .swf with all the .pngs and linked movieclips to add the assets to it's own stage and it works fine but that means a lot of my code and logic is included in the shared .swf that the designers need to add .pngs to. We need to have the main .swf get a handle of the linked .png assets and place them in the main .swf to load the assets to different parts of the main .swf. It's cute that the shared .swf can add the linked assets to it's own stage but not too useful.
Also the way we deploy we cannot roll out a new release/build to update the .pngs but we can upload a new .swf to the asset server so the .pngs need to be in a separate .swf. I can get the shared MovieClip to add the linked assets to it's own stage when testing and when loading my problem is the main .swf that loads the shared .swf cannot create instances of the classes that are exported for runtime sharing using linkage.
View 2 Replies
Dec 16, 2003
For a school project, I need to convert my flash animation in a quick time movie (stubborn teacher).When I publish the file as a mov. file, it gives me the following error:"The installed version of Quick Time does not have a handler for this type of Macromedia Flash Movie.
View 4 Replies
Feb 15, 2010
I'm trying to export a .mov from a .fla file. Strange thing is happening. When I export the .mov, there are small sections of the vector animation that are missing or not showing up like missing puzzle pieces. I can't find anything about this. I've tried many different settings and they yield similar results.
View 5 Replies