Actionscript 3 :: Export Assets From A .SWF Container?
Apr 8, 2012
Given is an online swf on Hubworld's site, which loads two configuration XMLs into an .swf file, then displays a game. A copy of the Flash with the two configuration files can be found here. [URL]. If unzipped into a folder, it loads the two XML files and displays everything correctly. The problem is, how to take it apart?
I tried decompiling the file, but it only shows up as a (mostly) empty file with a single symbol and a few misc tags inside it, despite the file itself containing several hundreds of vectors. [URL] I severly doubt that any sort of encryption or obfuscation is present, since it's a children's game and I took apart many others without a problem. How could I retrieve the said files from the container?
View 1 Replies
Similar Posts:
Dec 10, 2010
I am tired of people always stealing my swfs from the cache folder and taking the assets, sure I can encrypt my code but the assets are also very important to me. I have goggled and goggled till I can Google no more and finally found the eminem bonus site which contains a widget that works perfectly, it contains a swf that is just a container and the assets are impossible to get hold of.
View 4 Replies
May 20, 2010
This is sort of a repost, but because this thread is in the AS3 section the subject is inherently different because this board doesn't have anything to do with Flex.So, I want to put a bunch of assets within one file (SWF maybe) and load it at runtime. Then I want to be able to access these assets after I've loaded the file.As is visible by my previous thread, I have no idea where to begin, but I know it's "absolutely" possible and obviously very useful.
Even if the loaded file isn't an SWF file, I'm fine with it. I would prefer to be able to store vector graphics in it though, maybe even produced in CS3/4/5 (because that's what my friend's using to draw said graphics).Looking forward to hearing from some of you over here--now that the thread has a more general subject.
View 0 Replies
Jun 30, 2011
I have a swf file but when I put it on a server at work, it is blocked. I get a black screen that just shows three dots as if it was loading. Nothing comes up. The swf has an FLVPlayback component which links to an external flv file. After talking with tech support locally, I found out that the swf is being read by the server scanners as an MP4 container and that is why it's being blocked. I would like to know if there is a way I can generate the swf without it being read as an MP4 container so it will work here.
View 8 Replies
Feb 10, 2011
I want an air application to be able to update the assets it uses, but minimizing the download needed, so only downloading files added since it last updated.I'm thinking this would include a server portion which would zip the needed files based on a version number? Has anyone implemented anything similar / got any thoughts on the best approach to building this sort of system?
View 1 Replies
Apr 1, 2011
When I try to export my application to native installer with using Export Build Release, it isn't importing my sqlite database files which are in my application directory. Is there a way that I can import those database files ?
View 1 Replies
Jul 2, 2011
In a Flex Mobile project I have a simple itemRenderer where I'm trying to create an "bubble" texting effect, similar to ichat or iphone (just so you get what im going for). But if the text is longer than the screen it runs off, rather than just going down a line.
If I set Group thats holding the rectangle(to create the bubble effect) and the label to 100% it works and keeps it from exceeding the list containers bounds, BUT the group is always at 100% and looks bad, I'm trying to keep the "bubble" JUST AROUND the text.
Anyway so, at the top of my itemRenderer I tried specifying:
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" width="100%" height="100%">
And here's my layout I figured since msg_container has a width of 100% I was hoping bubble_lable_group would just not exceed that but...it doesnt...it just runs off. I tried setting a max width but that does not allow you to input percents. And just to say it 1 more time. I know if i set bubble_lable_group width to 100% it works, and keeps it from going off the edge, but then the rectangle "bubble" stretches all the way across and just looks bad.
<s:VGroup id="main_container" horizontalAlign="left" paddingBottom="10" paddingTop="10"
verticalAlign="top" width="100%">
[Code]....
View 1 Replies
Jun 17, 2010
I am facing a issue in Flash container. I am having a project which has main container which call different SWFs into it. Now I call this main container file into another container, and their problem starts. Many option doesn't work properly which generally have _root, _parent etc...
If I want to run project (main container SWF and child SWFs) into another container file which place on a website. I want to show whole project from this container file so what I need to do?
View 1 Replies
Sep 21, 2011
I have a loop that goes through data from a book and displays it. The book is not consistent in it's layout so I am trying to display it in two different ways. First way(works fine) is to load the text from that section in to a panel and display it. The second way is to create a new panel (panel creates fine) and then add collapsable panels(nested) to that panel. Here is the code from the else loop.
else if (newPanel == false){
// simpleData is just for the title bar of the new panel
// otherwise the panel has no content
[Code]....
The error I get is: ReferenceError: Error #1069: Property panel4.4 not found on components.readTest and there is no default value.
I have tried setting the "name" property instead of the "id" property.
View 1 Replies
Dec 23, 2010
I have a viewstack container w/ 3 views: red, black, and blue. How can I completely hide the black & not include it?
[Code]...
View 2 Replies
Jan 13, 2012
I am creating an flex Air project,so mxml file will run. I have circles in one Big circle at one side and will be same on other side.
Now how to drag any circle from any Big circle to other side. Or it could be like any two container having circles, then how to drag and drop circle?
For one circle i am able to do drag and drop.But I want one Big circle on left hand side and one big circle on right hand side .And small circles with class names will be in these big circles.Now i want to drag and drop those small circles in big circles.Big cicles should not move. Even i have tried this code in actionscript
package
{
import flash.display.Sprite;
import flash.events.MouseEvent;
[Code].....
But in this i want big circles should not move and small circles should only be dragged.
View 1 Replies
May 6, 2010
I need to place an image into a container. The problem is that I will not know the size of the image or the container beforehand, so it all has to be dynamic.this is how I started (have not gotten to stage(or container) changing size yet. No matter what I try, either all the images are the same width, or they are all the same height. If some images are portrait and other landscape, I don't want all the images to be X pixels high. In this variation of the code, all the images turn out the same height, regardless of portrait or landscape.
ActionScript Code:
var ratio:Number = container.width/container.height;//get the ratio, if width is bigger than height then ratio is greater than 1, else ratio is smaller than 1
[code]........
View 0 Replies
Jan 27, 2010
I'm currently working on a custom component which extends Canvas (let's call it SuperCanvas) ; it's basically a container that let you zoom & pan its contents. It would be too long to explain why, but I can't use scrollRect, so I was forced to declare a Canvas object (called innerCanvas)... inside my SuperCanvas (I know, not very nice =/) I would like to know if there's a proper way to "redirect" the creation of my component's children in this canvas.
[Code]...
View 1 Replies
Apr 22, 2009
Wherever I look it says that loading external assets(.png, .jpg, gif) from a SWC is supported. However, I can't find a single example of doing this with anything else than Classes and Components.
I have 7 swf's that are loaded and unloaded by a main swf, a sort of menu system. These swf's all rely on loading in some .png's at runtime.
I made a new "Library Project" in Flex, filled the scr folder with my .png's, set the loading type to "external". Because I don't want the .png's compiled into my application .swf.
But how do I get a hold of my raw .png's from within my classes?
I can do:
var obj:AComponentFromSWC = new AComponentFromSWC() no problem.
But I want to do:
var pic:Bitmap = BitmapFromSWC();
Is this possible or did I completely misunderstand the use of SWC's?
This way I could let all the apps use the same SWC and it is easy to distribute all the graphics as one package and the loaded swf could share common graphics.
View 5 Replies
Sep 8, 2009
I currently have a "container SWF player" that loads SWFs externally and plays them.The sound file for the SWF is in the library of the container SWF player, because the player is using the duration of the sound file to determine how long the scrubber bar goes.The problem is, it sort of defeats the purpose of having a container SWF player if I have to create a different container SWF player file for each external SWF because there's a different sound for each external SWF.Is there a way to pull the sound file from the library of the externally loaded SWF into the container SWF player?So that depending on what external SWF is playing, it will pull the associated MP3 file from that SWF's library?
View 1 Replies
Mar 25, 2011
Is there any way to collect all external assets (images, videos, etc) and put them in one selected folder?
View 2 Replies
Dec 15, 2010
I started using Flash CS5. I spent many hours working on a .FLA file. Saving as I went and at one point Flash CS5 crashed during the save. The .fla file is now corrupt. The new .fla format is essentially a .zip file. So I was able to change the file name to *.zip and explore inside of it. The DOMDocument.xml file is corrupt and dead. The DOMDocument.xml is the timeline so all my placement and animation is gone. However, my LIBRARY folder is in tact and has all of my library items as *.xml files. How I can get those library items into another .fla file so I don't lose ALL my work? I've tried creating a new .fla file and dragging the LIBRARY folder into the new .fla, but my library items don't show up when I load the new .fla in the Flash CS5 IDE.
View 2 Replies
Jan 27, 2009
i am currently working on a project that would be greatly advanced if i can find out how to package a number of assets into a SWC file so i can use it as a theme pack.I have looked everywhere on the web and in a large number of books i have sitting in front of me and cant find out how to do it.
I want to put a bunch of images and movieclips into a SWC file and then retreive the swc dynamically at run time, however i do not know how to access indiviual assets within how to load an SWC and then gain acces to its assets?
View 4 Replies
May 18, 2011
How do I publish and import a SWC in a way that allows me to access the exported symbols as well as their children? working on an action script project in Flash Builder 4. In my SWC I have a sprite called SP_ViewHome. That sprite has a child called mcContent which is another sprite instance.I've included the SWC so that the FB4 recognizes the class SP_ViewHome (and auto completes when I create references to them). But my problem is that I can't access it's child by using the regular syntax for accessing children (compiler error 1119: "Access of possibly undefined property mcContent through a reference with static type flash.display:Sprite")
Code:
public class ViewHome extends Sprite
{
private var s:Sprite;[code]....
I can access that child with the getChildByName() function. However this seems inefficient both in terms of development and run time performance.I need to do to be able to access children of SWC classes more easily?
View 1 Replies
Oct 1, 2009
I'm developing some elearning material to be distributed on CD. The main swf loads text, images, sounds via an XML file. protecting the assets/XML from being edited/stolen?
View 3 Replies
Mar 28, 2010
I'm now writing a simple socket application for my own learning purposes. It will be a really simple BlackJack application.I was thinking for ways to manage 52 different cards in my app. I could make those 52 cards, as 52 images and then, maybe load them into movieclips at runtime. Or, I could take one big image with all of the cards on it, and create a masked movieclip, and then, shift and slide the image's position, so that the correct graphic of the card shows.y question is: which way is faster? Will flash be better with handling 52 small images, lets say 20x40 (in reality, i will only load like 6 of them in the display list, since black jack almost never deals with huge amount of cards). Or would it be faster, if I had a big image with all the cards (~160x160 maybe) and just reused that with different masking, calculated on runtime?
View 1 Replies
Feb 12, 2009
i am loading an external swf and need to access the assets within it heres my basic code:i can access fine through the onComplete function of the loader but cannot access from anywhere else....
Code:
stop();
import flash.net.URLRequest;
import flash.display.Loader;
import flash.events.Event;
[code]...
View 1 Replies
Jan 27, 2010
I used to be able to create distributable components in AS2 (swc files) containing class code and assets (movieclips). And it used to be really easy.Now I am struggling with Flash CS4 and AS3 and all my attempts were frustrating, as no matter what I try it simply doesn't work. I am starting to assume that maybe it is not possible anymore to do in AS3? Maybe this kind of thing is deprecated in Flash now???
Let's see what I have tried:
1) I started with a new FLA and named it 'MyComponent.FLA'. Then I drawed a green square, converted it to a mc and named it as 'MySquare'. Then I tagged 'Export for ActionScript' and 'Export in Frame 1'. Then I named the class as 'MySquare' and set the base class to 'flash.display.MovieClip'. This is my asset (a green square movieclip).
2) Created an empty movieclip and dragged the asset within it. Then I named it as 'MyComponent'. Then I tagged 'Export for ActionScript' and 'Export in Frame 1'. Then I named the class as 'MyComponent' and set the base class to 'flash.display.MovieClip'.
3) Right-clicked it in the library and chose 'Component Definition'. Then in class field I typed 'MyComponent' and tagged 'Display in Components Panel'.
4) Crated a new AS file, called it 'MyComponent.AS' and typed the following code:
Code:
package {
import flash.display.MovieClip;
public class MyComponent extends MovieClip
[code]....
5) Back to 'MyComponent.FLA', right-clicked the 'MyComponent' object in the library and chose 'Export SWC file'. That was ok, no warnings, no errors. Then I just copied this new SWC to my components folder.
6) Created a new FLA and named it 'test.FLA'.
7) Reloaded the components panel, and my new component showed up. Then I dragged it into library.
8) Then I type the following code:
Code:
var test:MyComponent = new MyComponent();
trace (test.visible)
9) I ran the new app and it was ok, no errors and no warnings. The trace statement spit out 'true' what means that the new class is really there, but... I cannot see the green square. But when I click onto the 'MyComponent' in the library, the preview shows up the green square, what means that it IS THERE in the component. So, why it doesn't show up in the stage after the class be intantiated?
View 4 Replies
Jul 28, 2009
I have an animation that is timeline based. The file size is around 900kb for the entire project, as it has numerous images at different stages.
How does flash determine when to start playing the movie? Is it based on a percentage of loaded size or does it load assets as it moves along?
View 2 Replies
Aug 28, 2009
we all know how the Loader class works, and it is definately a god send.my flex project uses external swfs as assets (buttons, pages, etc).now the problem is that because these assets are loaded after initial application creation, it is sometimes visible to the viewer that these assets are being loaded, (buttons appearing slowly etc).i need to be able to include the loading of all the assets during initial site startup. is there a way to get all the assets into the viewers cache before the site has finished loading?
View 2 Replies
Nov 5, 2009
I created several swc-based components with AS3 and Flash CS4 extending the UIComponent structure. After exporting a fla-based component to a swc-file i created a flash-extension with the Adobe Extension Manager and installed the component.This swc-based component works fine and shows up in the component panel, but i'm not able to edit the components assets because they don't show up in the library anymore.Can someone please tell me if there's a way to export the components assets respectively the components symbols with the swc-file in order make them editable and show up in the library of the FLA which's using the component?
View 1 Replies
Jul 2, 2010
In an existing Flash (CS5) project NOT utilizing XML in ANY WAY, I imported (copy and pasted) a group of objects from Illustrator (CS5) into the project. When I published the file afterwards I got an XML error:
[Code]....
I even tried importing the whole flash XML package, just to see if it resolved the issue. ( import flash.xml.*; ), needless to say, it didnt. So then I deleted the imported Illustrator group and what do you know.. my Flash file compiled without any issues, no XML errors.. VERY confused.. only thing I can think of is if it has to do with placed images..
Right now I have resorted to importing as bitmap, but I dont like this option
View 1 Replies
Jul 16, 2010
I want to add assets like buttons etc to the xml file. Will that change the order in which the existing items will be called but the code?Right now it's this:
<image>#1.jpg</image>
<image>#2.jpg</image>
<image>#3.jpg</image>
It will be like this:
<image>#1.jpg</image>
<image>#2.jpg</image>
<image>#3.jpg</image>
<asset>#1.gif</asset><asset>#2.gif</asset><asset>#3.gif</asset>
In my opinion no change in the code should be required except for adding loaders for the new items.
View 1 Replies
Nov 23, 2011
Greetings. I am working on a website that uses flash for everything. There is little HTML ... anyway, since it is such a massive main file, the client requires a preloader. I searched for some code and inserted it. It seems to be working fine. The only weirdness is, i can't get the "Loading Module" animation and the dynamic text box used to show loading status to show up on the stage. Instead what appears there is some kind of bizzarre animation that just uses little circles as an animation. Sounds crazy i know, but you can see it at the following link.
[Code]...
View 3 Replies
Mar 18, 2010
I'm attempting to compile my Flex project with an ANT build script.One of my MXML components references an external XML data file, like this:
<mx:XML id="treeData" source="assets/data/help.xml" />
When I build the project using Flex Builder, it compiles fine. However, when I try to compile it using ANT, I get the following error:
Error: Problem finding external XML: assets/data/help.xml
How come ANT isn't finding the XML file? Apparently it knows the source path otherwise it would not have found the component to begin with. I added the source path to the target anyway, but it doesn't seem to have made any difference:
<source-path path-element="${SRC}" />
View 1 Replies