Flash :: Utility To Create Static SWF From SWF With Externally Loaded Content?

Dec 17, 2010

For example, If I have a SWF that loads XML and images, and displays them, is there some kind of 3rd-party tool that will take this SWF and re-render it as if all the text and images were embedded and not external? So I could just use the same SWF without it relying on image and xml data files?

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Preloading Flashvars - Ensure That All The Content Being Loaded Externally Is Loaded Before The Transition Plays?

Aug 30, 2005

I am in the process of building a site for an Architect... Jamie Fobert Architects (projects) I am useing transitions between the projects and am loading details/text and images externally through flashvars, php and a mySQL database. Within my transitions I have a a preloader on the forst 2 frames the code is as follows (taken from a Voetsjoeba tutorial):

[Code]....

This works pretty well if the content is within the .swf, but when it is loaded externally it doesnt preload it at all. Does anyone know how I can adapt/improve this preloader? or somehow ensure that all the content being loaded externally is loaded before the transition plays?

View 2 Replies

ActionScript 3.0 :: Externally Loaded Swf Content Is Not A MovieClip?

Mar 3, 2011

I have multiple SWFs published with Flash CS5, all of them seemed to work fine and I could load them at runtime from another SWF and access the the loader.content as a MovieCLip and therefore access the children of those SWFs.

But now I've created a new SWF and the loader.content type is .MainTimeline__Preloader__ instead of MovieClip on this particular swf! So I get the reference error 1069 property not found when I load and try to access children in this SWF.

View 4 Replies

ActionScript 3.0 :: Static Utility Method Requires Loading?

Jun 29, 2010

I have a bunch of functionality which is going to be used throughout the application.I already have some utilities which work ok such as changing an AS3 object into XML.public static function convertMyObjectToXML(o:Object): XMLThis can go in a UTIL class somewhere.nother thing i would like to do is create a "createDirectory" via php. public static function createDirectory(name:string, path:String): voidThe problem is, in order to get the response from the server, i need to listen for the load to complete (or fail).So am i right to think that static methods are not possible or desirable here? How else can i solve the problem of reusing such a method throughout an application?

View 0 Replies

ActionScript 2.0 :: Making Externally Loaded Content Of Movie Clips Persistent?

Aug 3, 2009

I'm making a very simple cross-fading slide show of JPEGs loaded from a folder. I'm loading them into movie clips with:

Code:
holder1_mc.loadMovie("images/home_flash/image1.jpg");
holder2_mc.loadMovie("images/home_flash/image2.jpg");

[code]....

View 2 Replies

ActionScript 3.0 :: Can Buttons/assets Be Loaded Externally And Referencing Dynamic Content By Name

Jul 30, 2009

I have a widget containing a number of displayobjects, i.e. up arrows, down arrows, tab 'buttons', backgroundrectangularblocks, sliders, company logos etc.I am currently creating these displayobjects using the graphics class with parameters taken from an external file, things such as fontsize, font, colour, width, height e.t.c and adding them as children of "container" sprite objects for easy manipulation and referencing later can these assets be loaded in their entirety externally, rather than being created using graphics class draw methods (which I want to avoid) as some of the things I need to design cannot be created in pure actionscript very easily (if at all?), and then used or do they always have to be in the library and instantiated from there?

if the first question is yes they can be loaded externally, this question probably isn't needed; however, if I have to put the items in the library and recompile each time a client wants to use say a curved blue up arrow instead of a yellow one and then decides he wants a yellow circle instead then how do I write the code to do the following:-Say on my first ever compile I have 'upArrowBtnset1' in the library, I instantiate it and use the instance name to access it in the usual way using standard code,

upArrowBtnset1.addEventListener.... container.upArrowBtnset1.scaleY = .3 e.t.c

Now if they send me a second set of 'upArrow' graphics they want to use I could either update all the upArrowBtnset1 assets with the new graphics meaning the original set is no longer available to the client and I would either have to hold a "original set" FLA file with the first set of arrowbuttons or I could import these to the library as upArrowBtnset2 and a third set they send as upArrowBtnset3 and so on each time I am sent some new assets; I would then recompile them into the SWF and adjust the references to the new assets within the code. In the code, for each instance of "upArrowBtnset1" I would have to rename them to "upArrowBtnset2", recompile and send it back to the client.

Because I have already abstracted the font/colour/size choices out to an external file, they can change that as much as they like without a recompile which is what we want. The problem comes if they want to use set1 again and haven't kept the original "set 1" compiled SWF. It would be easier to abstract the 'setchoice' also to the external file. The SWF would over time build more and more available sets that they could use by just changing an external variable.

For example, if the designer wants to use set 1 on Monday, set 2 on Tuesday and set 3 on Wednesday I want to make it so they can just adjust an option in an external file to "setchoice = 3" for weds instead of either having to recompile the swf each time or they have to have 3 versions of the SWF for each asset set. The idea is that as more and more assets are added in, they have more and more choices. Ideally, in an external file there would be a list of assets and links to where they are loaded from. (i.e question 1 above).

If I have an external file (say XML) which holds the setchoice option that the designer wants to use (say they want set3 today) my 'generic' code has to be something like upArrowBtn(setchoice).scaleY and every instance in the code where that object is used I append the 'setchoice' as chosen by the designer from the external file where (setchoice) is retrieved from something like var setchoice:String = "set3"; from the external file (I am currently abstracting all the adjustable variables to a configuration.as file. I will work on using an XML later when the principle of external files works (I hope!);

Is it possible to import assets from external sources and then use them in the SWF as if they were in the library? The loader class? Is this just fraught with danger I wonder.

Essentially I am being asked to remove as much as I can from the SWF so that if the client wants to change the positioning of things on the stage or the text on buttons or change the style of the buttons or the company logo they don't have to come back to us to ask for a recompile of the SWF for each tiny adjustment. Inevitably SOMETIMES a recompile will be unavoidable (such as if they want the widget to suddenly be twice as wide (i.e. the stage). My code already handles some of this using stage.stageWidth and then positioning objects relative to other objects already on the stage using this value and centred so that just changing the document properties is all I would have to do and everything else adjusts proportionally. I am trying to make this as reusable as possible with as little effort from myself as possible to save our company wasted time.

After all that waffle, my question is this, if I can't load all my buttons and assets and things externally, how do I write the code for this:- I have a library asset called upArrowBtnset1 and another called upArrowBtnset2. Instantiated with say upArrowButtonset1 and upArrowButtonset2 The code would normally be upArrowButtonSet1.x = 100; upArrowButtonSet2.y = 300; but I need it to be upArrowButton(setchoice).x = 100; upArrowButtonSet2(setchoice).y = 300; where (setchoice) comes externally from var setchoice:String = "set1";How does the code change if the (setchoice) string was named not at the end i.e 'button(setchoice)UpArrow'?

ActionScript Code:
var numClips:Number = 5;
for (var i:Number = 0; i < numClips; i++)

[code]....

I need to do something like, getChildByName("mainTab"+i).addChild(myMovieClip) ? or maybe this["mainTab"+i].addChild(MovieClip)?Is it possible without using .name?

View 0 Replies

Flex :: Create Static Frame And Change Content Pages In It?

Sep 2, 2010

I need to create a static frame and a changing content... currently envisaged as frame containing the side panel and header and footer content.

The content panel will call mxml based on the content sought.

a) how is the frame paradigm- with static frame "containing" other content done. I dont want to repeat the header and footer logic in every 'content section' code?

b) how is the hyperlinking between content sections done- using 'states' seems convoluted

View 2 Replies

Actionscript 3 :: Move The Externally Loaded Content Of A MovieClip To Another MovieClip?

Jul 25, 2011

I load an image into a MovieClip. At a second time I want to move this image to another MovieClip.

View 1 Replies

ActionScript 3.0 :: Using The 'new' Keyword To Create New Instances Of Loaded Content?

Aug 6, 2009

I've been testing what you can do with loaded content lately and I'm trying to use the 'new' keyword to create new instances of a loaded swf. For example...

ActionScript Code:
function onLoadComplete(e:Event):void{
var loadedSwf:MovieClip = e.currentTarget.content;

[code]....

View 4 Replies

Flash - Static Mask With Moveable Content

May 28, 2011

I'm having trouble figuring out how to make a static mask with dynamic content (as in a picture you can zoom/pan) in ActionScript. I've seen a lot of the opposite (see here), where you have static content (like an image) and a dynamic mask on top that you can manipulate. I would like to do the opposite - have a static mask (set at some size at some area) with dynamic content underneath. So for example, a user could zoom in/drag around some content, and the display size wouldn't change, while the content would move. You could imagine Google Maps being confined to a smaller square and being able to zoom in/manipulate the map through that square, and have whitespace outside of that square.

View 1 Replies

Flex :: Alternatives To Create Swf Files (which Has External Content Loaded Into Them) Dynamically?

Jul 2, 2009

I'm about to start a project where there will be a Flash application where the visitor customizes a profile with externally loaded images and texts. Then the visitor needs to be able to download that profile as a dynamically created swf with all that external content baked into the swf.

View 2 Replies

Flash :: Allow Smoothing In Externally Loaded Images?

Mar 5, 2010

In Flash, I can go into the properties of an image in the library and check 'allow smoothing' to enable resampling when the image is scaled or rotated.

How can I achieve the same effect for images loaded dynamically by the SWF from an external URL?

View 2 Replies

Flash :: Error Referencing Externally Loaded SWF

Mar 9, 2010

I'm loading an swf say "test.swf" which gets loaded in imageLoader , so I can get its content by :

imageLoader.content

So if I wanted one of the movieClips inside it I would do this :

imageLoader.content.testMovie.transform.colorTransform = someTransformation;

But when I do this, since the movie is not loaded the file is not compiled and gives me an error your referring to something that is not there. How else am I supposed to reference a content that will be loaded later?

View 2 Replies

Flash :: Unable To Position Externally Loaded Swf?

Jul 2, 2010

I´m having troubble positioning an externally loaded swf. It simply does not respond to any settings of its x and y values.

The swf I´m loading is a pure as3 project created in FlashDevelop where the main class extends sprite. I´ve even tried modifying the x and y values afterwards using MonsterDebugger but with no luck.

The swf is loaded into a container on the right side of the stage but always end up at the top left corner. The loading is straight forward:

public var targetContainer:Sprite;
public function load(path:string):void {
loader = new Loader();

[Code]....

View 2 Replies

ActionScript 3.0 :: Flash Getting Filename Of Externally Loaded Swf?

Nov 13, 2010

I am trying to figure out how to get the actual filename of an external .swf when loaded into another movie clip.

Code: var toTrace:String = getChildAt(0).name; trace(toTrace); That is what I have. It gives me the instance name, which does me no good, because it is a relative instance name. My situation is that I have a few buttons, when clicked they load external .swf into the stage at index 0. I need to know how to reference the currently loaded external file.

View 8 Replies

Actionscript 3 :: Flash Double-click An Externally Loaded SWF?

Mar 18, 2010

I've got a class (which extends MovieClip) that loads in an external SWF (made in pdf2swf). That is added to another class which has declared doubleClickEnabled = true and I'm listening for DOUBLE_CLICK events.Problem is when the SWF is loaded my code picks up no DOUBLE_CLICK events, only CLICK events. I've tried it without adding the SWF to the stage and it does pick up DOUBLE_CLICK events.

class ParentClass{
...
public function ParentClass(){
...
mcToLoadSWF = new MovieClip();

[code]...

I've also tried adding the event listener to the mcToLoadSWF as well. No dice.

View 1 Replies

Flash :: Externally Loaded Sounds Echoes In Certain Browsers?

Nov 30, 2010

in Chrome on Mac and in Chrome, Opera and Safari on PC, it appears to be playing sounds twice, generating an unwanted echo-effect with a rather random delay(always under half a second though).

I have 2 swf-files that communictes through a LocalConnection, the main swf simply calls a function on the second swf and passing a url to an mp3-file as parameter. The second swf then loads the file and onComplete plays it.

This works perfectly on IE(that's a first) and Firefox on both mac and PC but echoes as mentioned above.

I even implemented a double-check to make sure a sound wouldn't play if a sound is already playing.

Some sample code:

var audio:Sound;
var isPlayingSound:Boolean = false;
var soundURL:String;

[Code].....

View 1 Replies

Flash 8 :: IDE - Add Video Player Controls To Externally Loaded SWF?

Nov 1, 2010

I'm have a flash movie where I let the viewer push a button to load an external SWF-which in itself is a video I converted to SWF. Once it loads via an empty movie clip into the main flash movie how can I add video player controls such as volume on the lower part of the stage of the main movie to control the externally loaded SWF?

View 1 Replies

ActionScript 3.0 :: Flash - Accessing Classes From Externally Loaded Swf's?

Apr 30, 2011

I have a document class which links to several classes, one of which adds a container onto the stage and loads external .swf's into it.Q: How do I access the various classes loaded in the document class from the external swf timeline?For instance, when you click a button in the loaded swf it changes the soundtrack from the soundtrack class. I have tried dispatchevent from the external swf timeline, but I still can't seem to get it to work. Is this supposed to work, or should I be doing something different?

View 1 Replies

Professional :: Poor JPEG Quality When Loaded Externally In Flash Via .xml

Jul 26, 2011

I have a movie that loads images from an external source based on paths contained within an .xml. As far as I can see, there is no restriction to the size of the loaded image, which are are JPEGs, hence flash will not have these images resized. The images look fine when loaded in Photoshop or viewed separately, but the quality is just awful when loaded within the movie.
 
I've tried the usual hints like increasing JPEG quality in Publish Settings, but understand that since these images are not imporated into Flash CS5 before compiling, but are instead loaded when the .swf is run, these settings would not have any effect.

[Code]....

View 1 Replies

ActionScript 3.0 :: Poor JPEG Quality When Loaded Externally In Flash Via .xml?

Sep 25, 2011

Basically, my problem is that I have a movie that loads images from an external source based on paths contained within an .xml. As far as I can see, there is no restriction to the size of the loaded image, which are are JPEGs, hence flash will not have these images resized. The images look fine when loaded in Photoshop or viewed separately, but the quality is just awful when loaded within the movie.I've tried the usual hints like increasing JPEG quality in Publish Settings, but understand that since these images are not imporated into Flash CS5 before compiling, but are instead loaded when the .swf is run, these settings would not have any effect.Does anyon

Code:
stop();
var my_x:Number;

[code].....

View 3 Replies

ActionScript 2.0 :: Quick Code Fix For Externally Loaded Flash File?

Feb 8, 2007

i have a test website here which has externally loaded files coming into the container on the main index page. the code on the buttons at the top right hand corner have this code on each of them for the externally loaded .swf files to come in:

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "contact";
container.loadMovie("contact.swf");

[code].....

and that all works perfectly fine. what my problem is is when i click on the "contact" button and i'm on that page. on the left hand side column towards the bottom, i have a block of text with one red word. i want that word to bring in the f.a.q. page (and replace the contact page i'm currently looking at) which can also be accessed from the top nav. just a little thing, but i wanted to learn how to do it.

i've put the same code into the invisible button that says "faq" which is identical to the code listed above except i changed all instances of "_root" to "_parent" but that didn't do it. i think it's something like that that would have to do with the problem.

View 4 Replies

ActionScript 3.0 :: Flash Displaying Externally Loaded Image Multiple Times

Mar 6, 2012

What I'm trying to do is quite simple. Load an image externally, then display it (addChild it) multiple times, in different places, without loading it again and again. (Granted, caching means the image won't be downloaded multiple times, but I'd like to avoid those annoying disk accesses as well.) I know that flash doesn't actually support this. A while ago I was trying this same thing, I dug around for hours, and there was no real solution.

View 2 Replies

Actionscript :: Flash: Disable Or Block All Mouse Events Temporarily For An Externally Loaded SWF?

Jul 14, 2009

I have SWF files that I load into my flash movie and those SWF files sometimes have mouse events that can interfere with dialogs and buttons in my flash movie. I'd like to temporarily disable the loaded SWFs mouse event handlers or block them from having any effects on my flash movie. My flash movie is AS 2.

View 4 Replies

ActionScript 2.0 :: Externally Loaded Swf Does Not Stay Loaded?

Feb 16, 2006

I am loading an externally loaded swf that uses a mask to transition in. When the user clicks a different button I am doing a gotoAndPlay that goes to a mask that "unloads" the content (it doesnt actually unload the info is just outside of the mask area. As soon As I jump to that section the movie is no longer loaded and just shows the container clip that I had created for it. The Container Clip is never changed and is the same throughout the whole process. The only thing that changes is the mask animation.I have tried both loadClip and loadMovie but no luck on keeping the clip loaded.

EDIT - I have narrowed it down. When I change the mask movieclip the movie unloads for some reason. Is there a way I can keep it loaded?

View 2 Replies

Php :: Static Content In Website - While URL Changes?

Mar 23, 2012

but I don't understand how this site functions. The URL changes but header is static, and the music plays without interruption.

View 2 Replies

Flash :: Create A Javascript Carousel Which Contains A File As Well As Static Images?

Jul 11, 2011

I was wondering if it's possible to include an swf within a javascript carousel that currently just contains stagic images. What I'm looking to do is include a flash animation within the carousel. I guess I've got two main questions: Is it possible to cycle through flash files in the same way as an image? How would I get the javascript and flash to interact so the flash file would know when it had been selected?

[Code]...

View 1 Replies

ActionScript 3.0 :: Remove The Loader But Its Content Still Playing I Know That From The Sound Of The Content Was Loaded?

Apr 20, 2009

How to remove a loader and its content using removeChild or any other way, I had removed the loader but its content still playing in the background i know that from the sound of the content.this is the my code for removing:

removeChild(getChildByName("SampleLoader"));

View 9 Replies

Media Server :: Publish Static Content To Live Stream?

Jan 4, 2010

I have a requirement of publishing static content like video files mentioned in a playlist to be published to a live stream. It is like creating a TV station with pre-recorded content but with live stream. It will great  if anyone let me know is it possible with FMS?

View 1 Replies

Actionscript 3 :: Stopping An Externally Loaded Swf From "playing" When Another External Swf Is Loaded?

Nov 8, 2011

I have a homepage with five "links" to each swf. Now the first swf I have a custom cursor that hides the mouse. When I click on that link it plays and when I quickly go to the homepage again it hides the mouse there when it's not supposed to do it.

Same with every other link. When I was busy with the first swf and want to go to the last swf of the five, my mouse just disappears! It is almost as if it keeps on "playing" without seeing the swf...

Here is the code that I have so far!

var currentpage:uint = 0;
//one loader object per project:
var loadingobject1:Loader = new Loader();
loadingobject1.x = 445;

[Code]....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved