ActionScript 3.0 :: Make A XML Url From Fla File
Nov 26, 2009i tried to figure out the XML url from fla action script file but i couldnt make it here is the code :
[Code]...
i tried to figure out the XML url from fla action script file but i couldnt make it here is the code :
[Code]...
I have to make a project for school. It will be like a tutorial, but into an application. I already made a part of it in MXML and a bit of action script but I encountered a few problems that are over my newbie limits. So the Flex Builder 2 makes a SFW file, in the main folder of the "project". I want to make that SWF file my main executable file. I have a folder with some pics, and another folder with Action Script Files. The code lvl that I know atm is ABSOLUTE BEGINER... I don know how to make my SWF file have a specific name when I run it.Here is a picture of a training exercices that should make thing more clear:Some people told me that I should use a HexEditor and stuff. Is it ture(what u think?).
Next problem. I dont know how to make the Stage to be fix. I mean.. I dont want the stage to be resizeble. I tryed to change the stagescalemode but that wasn't it. I toke a look at the help files of Flex from the net, about the Resize action and SystemManegment, but I didn't find out what I wantend.
I'm making a game with Flash CS5.5 and exporting it to a APK file (AIR for Android).The trouble is that the APK file is really just a ZIP file, so you can extract the content and inside there is my game as a regular SWF file. Anyone can upload this to any website and play the game there.
I don't want the SWF file to work unless opened like it should, inside the APK file through Android.Is there any way to know through ActionScript 3 code if the SWF file has been extracted from the APK file and has been opened as a normal SWF file?
I want to program a Flash file in ActionScript 3 so that the user of the SWF file can make changes to the program and these changes will be automatically applied to the original FLA file without any human intervention. A new SWF file will be activated containing the changes and this is all done without human intervention. The objective is to allow the user to make changes to a SWF file and have these changes made automatically. Is this possible to do in Flash?
View 1 RepliesI am trying to combine 2 swf files into a "master swf." One of the swf files is a timeline animation of graphics and text, not much coding. The other is all interactive coding, written on a seperate .as file with a complex Class structure.My first attempts to combine the swf files by simply adding from the Library to the stage at particular frames was a failure and I got all sorts of error codes and broken animations. Would it make any difference to add the swf files dynamically? I guess my question is how to make a master file that conforms with my .as file and will handle the animated section. On a related note, I need code that reads for the last frame of "SWF1" and triggers the "MAIN" timeline to go to the next frame (where the "interactive" swf is waiting to do it's stuff). Oh yeah and at some point, I'll need to prepare a preloader for the whole deal.
View 3 RepliesI have a Flash and swf file right now. I want to be able to play that file in another Flash file I'm making, the main Flash document. However, Flash CS4 cannot import other swf files.... for some unknown reason, and play it like a movie clip. I want it to play like a movie clip, which apparently can only be accomplished by using a flv file. Shouldn't I be able to make my swf or flash file into a flv file? I mean, Flash can read flv files, so why can't I export or convert to a flv file? I'm looking for free converters, but I have the Media Encoder that comes with Flash CS4. I just can't import swf or flash files! It can only make those files, it can't bring them into Media Encoder.
View 1 RepliesI am trying to find out how to make one .as file code interact with another .as file's code.like, if I had one .as file that specified options of movies and then when the user clicks on a movie (loaded through xml) it uses code from another .as file to load the correct movie.
View 5 Replieshow do i make a preloader for one image in my file?
View 3 RepliesI didnt even make my .swf file in adobe flash.. i made it (embarrassingly in keynote - and exported the file as a .swf file) ok. i'm working on this file for close to a week - yesterday i noticed the file when exported - was 1.4mb ... and today - when i exported it it was 6.9mb!
[Code]...
I normally work with print design but am designing some flash banners for a client. Just have some questions about file size.My current banner is 125kb but they want it under 25kb. Is that practical for a flash banner?Also, I have done tests with import options and it looks like if I import my artwork as an .ai file and convert to symbol then it gives a lower file size than importing as a png or jpg.How can I make my file size lower? I know it's hard to answer without seeing the file but is there an option similar to 'save for web' in photoshop where I can adjust the quality to reduce file size?
View 1 Repliesi am trying to make an as3 file in two different computers. they both have cs3, and there are some things that 1. tell me flash is buggy, 2. dont know how reliable it is the script, if is gonna run different in each computer.
i am trying to do somethings with matrix transform. i want some sprite to react according to mouse moment, so basically, according to mouse position, there are some statements and the result is a transform on the sprite.
something like
in onenterframe (or the handler that was set as handler of enterframe) {
temp_matrix = sprite transform
new_matrix = new Matrix();
[code]....
var2.concat with something else, then i check the value of var1, would it have changed also?, if so, is there a way to copy a matrix (but not cell by cell)?
I want that my flash file on my website, can't be downloaded by anyone. Is there any way that i can do that? As Firefox and many browser has many add-ones which easily detect out flash content and after they can download the flash file?
View 3 RepliesI am trying to work with a flash application in windows CE.
the folder containing the files has several .swf files in it. We'll call two of them abc1.swf and abc2.swf.
I have created two html pages which when viewed on my PC open up either file and view it just fine.
<html>
<body>
<object width="550" height="400">
<param name="movie" value="abc1.swf">
[Code]....
However, when I copy the directory to my windows CE 6.0 R3 device, the page that opens abc2.swf shows correctly. But the page that is supposed to open abc1.swf just shows a blank white area.
I am pretty sure that the abc1.swf is only supposed to redirect to abc2.swf (or put within a frame) given it's 1kb size and the fact that I can see the text abc2.swf within it when opened in notepad.
I've been told that the flash player built into Windows CE 6.0 R3 is only capable of supporting flash v8 or less. I suspect that perhaps the issue with abc.swf could be that it was built with a newer version of flash such as v9 or v10.
Is there any way for me to tell which version of flash a given .swf file requires using only freely available tools? Or, does anyone have any other theories about what would cause abc1.swf to work on my PC but not on my windows CE device?
I want to create a clip dynamically (for example with createEmptyMovieClip) and after assign object and motion to it, save or export it as a .swf file.
View 1 RepliesI have a free Cu3r Slider and I need to embed a font of mine. I tried sIFR but no succes. Does anybody have all the settings we can make with the xml file for cu3er?
View 1 Repliesi found a flipping book example, it seems nice.. but when i tried to convert its swf file to make some changes, the result fla file have problems with the code.. this below:
[Code]...
I tried with sothink but I get error on compiling.I need to change text and size in it..
View 9 Replieshow I can make a page to dowload a file? I am making a site to allow users to dowload web templates and was wondering if I can make a the usual dowload bow apear so the user can dowload a file that I will put on the server. Is this possible with AS3? If not how can I do it?
View 2 RepliesI have 2 files. I loaded img.swf to the main file and try to make preloader in main.fla file.
But after compile i get error: 1084: Syntax error: expecting identifier before modulus.
Code:
var req:URLRequest=new URLRequest("img.swf");
var myLoader:Loader=new Loader ;
function imgFileLoaded(event:Event):void {
[Code].....
I am having one of those 'self doubt sanity' moments. Entering melt down here ! I want to make a movieclip from a graphic map background, and some existing movieClips that reside in another .fla
In this other .fla file the movieclips are in the wrong layer so by starting over I wish to tidy things up.
How do I create a movie clip from such ?
Then I start thinking, how does one create a movie clip, then bring it into another file ?
I even did a test that went:-
1) create new AS3 file
2) draw a box
3) select box and hit F8 Convert to symbol, select movieclip and name it box_movieclip
4) d/click box and made a classic tween and had box moving across stage.
5) save as and named file MovieClip_Boxtest.fla
6) open new file AS3 and import to library the BoxTween.fla and got a message saying One or more files not imported as problems reading them.
So having done the above stages 1 to 5 which made a movieclip, how do I get that into another fla file ?
I need to make my swf view as a full screen in all browsers, i need to add code in fla file, not in html page, can i make that?
View 1 RepliesHow can I make my Clock.swf file disappear? The following code works great for movie clips but throwing an error while using for .swf files. Introduction_mc.visible = false; >>> This code works fine Clock.swf.visible = false; >>>> This code throws an error (How to resolve this problem?)
View 3 RepliesI made an animation using Adobe Flash,but I want to make the flash animation file like .exe (which i did by using adobe air)But I have a problem!I want to make it to appear on the desktop not in a frame.I mean to be like the Bonzi Buddy.I hope you understand me(my english is very bad and I'm sorry for thaht)
View 2 RepliesI have a website [URL] that you can but banner advertizing on it. The banners have to be a jpg or swf file and have to be a certain size. I have no trouble with PS. Everytime you refresh the screen or go to another page a new add appears. What I'm wondering if I can take several pictures and make them into swf file. What I'm trying to accomplish is a rotating banner so you don't have to refresh to see the new ads.
View 3 RepliesWhat action/script do write to make only the music stop looping?[URL]... Im using AS2 . Im kinda new to flash so can you please explain thoroghly.
View 7 RepliesI have swf file product animation the file make a 53 MB, i want that file put in website. How can i reduce file size:
1) file is make in 3DX Max,
2) Then import to render image in adobe aftereffect & done special effect & make a SWF file
I've been sent a swf file for a banner that needs to be linked to a url. I am adding this to my client's website and my client has been sent the swf and javascript to add to the page. The problem is that the javascript code is overly complex, and I'm wanting to use Jquery and Unobtrusive Flash Objects (I've not yet updated to swfobject on this site). Can I use Jquery and/or UFO (or indeed swfobject if I have to upgrade) to make the swf file link to an external url (preferably loading in a new tab/window)?
View 1 RepliesHow can I make a link to my Flash file?
Like an image, I can do it like this:
<a href="http://stackoverflow.com"><img src="imagefile.png" /></a>
I've tried to put <a></a> around the Flash HTML code, but it does not work.
EDIT: I found a solution. I've just put some JavaScript into the code.
The bitmap resource, It's usually make the bitmap generate the SWF file ,and use Loader class to load into the application. I search some answers from google, find two ways to generate SWF File, one. use mxmlc tool. and another, use jsfl. I know we can embed the bitmap or swf file into As code. and use mxmlc command like this: the as file is Vip.as , and the code :
package
{
public class Vip
{
[Code]....
I don't know how to use mxmlc generate swf file . And no error when debug the code.
Another way is that use JSFL to generate SWF in flash cs5, But I don't know how to use this. Ah, very pain.
When I push F11 in Flash Builder, it does a full build and runs in the context of my main ActionScript file. When I do the same in FDT, it builds the last selected file in the Flash Explorer pane and runs in the context of that. While I can see how it could be useful, I'd much rather always run in the context of my entire application. How can I make FDT always build and run my main file?
Possibly relevant: I imported the project from Flash Builder into FDT.