Embeding symbols from a swf created with mxmlc
Hello everyone,
I am trying to bundle my resources in seperate swf files then use them in another flex project. I create this bundles from a wizard i wrote in AIR. AIR app calls mxmlc to compile bundle.as and i dynamicaly load bundle.swf. I can access resources from this bundled swf using ApplicationDomain.getDefinition(). No problem there
However i also want to use my wizard to edit prexisting bundles. Problem is i cannot embed resource from original bundle to new bundle. I mainly use Sprite and ByteArray assets in bundles.
To simplfy problem i prepared following test. Created a bundle application to create bundle swf in flex. The project has 4 files: 2 .as files, 1 .png file, 1 .swf file( from FLA which has a symbol linked "Fill" )
// Bundle.as
package
import flash.display.*;
public class Bundle extends Sprite
public function Bundle()
var fla:DisplayObject = new Fla();
addChild(fla);
var image:DisplayObject = new Image();
addChild(image);
// Image.as
package
import flash.display.Bitmap;
[Embed(source='plus.png')]
public class Image extends Bitmap
// Fla.as
package
import flash.display.Sprite;
[Embed(source='fla.swf', symbol="Fill")]
public class Fla extends Sprite
public function Fla()
Project above compiles without problem and i can see both assets on screen.
Then i create a second project which will use swf created from project above.
package
import flash.display.*;
public class Application extends Sprite
[Embed(source='Bundle.swf', symbol='Fla')] /// Flex cannot embed this
private var flaClass:Class;
[Embed(source='Bundle.swf', symbol='Image')] /// But it can embed this
private var imageClass:Class;
public function Application()
var fla:DisplayObject = new flaClass();
addChild(fla);
var image:DisplayObject = new imageClass();
addChild(image);
The second project can only see Bitmap asset as symbol. But could not find Sprite asset.
We depend heavily on vector graphics from Flash, and byte array assets embeded with
[Embed(source='x.ba', mimeType="application/octet-stream")]
I could write byte array assets into a temp dir and embed them again but i cannot do it with Sprites. How can i solve this problem.
Interesting problem. What happens if you encapsulate the embed in the first Bundle?
Something like this:
package
import flash.display.Sprite;
public class Fla extends Sprite
[Embed(source='fla.swf', symbol="Fill")]
private var flaClass:Class;
public function Fla()
var flaAsset:DisplayObject = new flaClass();
addChild(flaAsset);
*edit*
Fixed typo in code.
Message was edited by: drkstr_1
Similar Messages
-
Trace() not working with embedded SWFs created with Flash Builder
I have just migrated to Flash Builder 4.5 with the 4.5.1 SDK.
I have an application that loads a lot of child SWFs into it - some of which are created with Flash, some are created with Flash Builder.
I am noticing now that my trace() statements that are called from within SWFs produced with Flash Builder that are loading as child SWFs into my main SWF are NOT appearing. However, trace() statements called from within SWFs produced with Flash that are loading as child SWFs into my main SWF ARE appearing.
This is an extremely major problem and has short-circuited my debugging/development.
Any recommendations, workarounds, or suggestions?If the child SWFs were created by performing an "Export Release Build", then trace() statements would be omitted.
You can control this by setting the -omit-trace-statements compiler argument (in Project properties -> Flex Compiler -> Additional Compiler Arguments).
-Anirudh -
Video from .ts files (created with Arcsoft Showbiz) played in accelerated.
Hello everybody, can you explain me why in PREMIERE PRO CS6, the video from .ts files (created with Arcsoft Showbiz) is played in accelerated while the sound is played normally ?
If it is normal, an update would be great
Thank you.>imported from vhs (with Hauppage Colossu).
As far as I know, the best way to digitize vhs tapes is with a http://www.grassvalley.com/products/converters product
Model 55 is one way from tape to computer, model 110 allows exporting back to tape
Files are DV AVI which edit very well in all versions of Premiere -
How do I add .swf created with Photoshop web gallery to Dreamweaver page.?
I've used Photoshop CS3 to create a Flash Web Gallery. I put that folder in my site root in dreamweaver, but when I add the .swf to the webpage- it only shows as a white box. Even when I press "play" nothing happens. What else needs to be done? All of the files created with the .swf are also already in the root directory
That would seem to be a question for the DW forum
http://www.adobe.com/cfusion/webforums/forum/index.cfm?forumid=12 -
Loading library movie symbol from external swf
Hi, I have a Flex/Air Application and I want this application
to load in an external SWF and display a particular asset from the
SWF library (just like attachMovie in AS2). I dont want to embed
the SWF into the Air application. For the life of me I can't find
any tangible info on how to do this. My second problem is that the
assets sit in an SWF published for AS2 (is that an issue?). All
content resides locally.
Can anyone help or point me in the right direction?I see now how to import and display a library class object
using:
var MovieClipClass:Class =
Class(loader.contentLoaderInfo.applicationDomain.getDefinition("myLibraryAsset"))
var movieClip:Sprite = new MovieClipClass();
addChild(movieClip)
But this seems to only work for SWF's published for AS3 Flash
Player 9.
I need to do the same for SWF's published with AS2 Flash
Player 7.
Any ideas? -
Can I download images from a DVD created with a newer version of iPhoto?
Hi, my first discussion forum! Why can't I download image files from a DVD created on my mother's computer(iMac G4 with Mac OS 10.4.11)?. She's running iPhoto6 and I'm running iPhoto5. Are'n't they compatible? The disc loads up OK then says at the bottom of iPhoto page "No Photos". Have tried with several disks. Many Thanks for yr help anyone.
Welcome to the Apple Discussions.
No, iPhoto 5 can't read a library or DVD created in iPhoto 6, because the structure of the libraries are much different.
Your Mac should be able to read the DVD. Use the Finder to copy the contents of the disc to your Desktop. Then from iPhoto, you can File > Import to library the Originals folder that you copied from the DVD. If your mom did lots of photo editing, you could also import the Modified folder. However, there is no way for you to re-link the edits to their originals. You will not be able to access her keywords, titles, ratings, and other iPhoto organizational metadata.
Regards. -
How to access properties of swf created with pdf2swf
Hi all-
I am new to flex, I have been using pdf2swf to convert
multi-page pdfs to swf files and then load them in adobe flex. I am
able to load the files correctly with SWFLoader but not access the
properties to advance the frames (play, stop). I have been scouring
the internet for a way to do this that I understand.
I have tried doing something like:
var mymovie:MovieClip = MovieClip(myloader.content);
and then using
mymovie.play();
which I can't seem to get to work.
Has anyone here done this successfully. If so, could you give
me an example of how this is done?
Thanks,
Cameron BrackenAdobe Newsbot hopes that the following resources helps you.
NewsBot is experimental and any feedback (reply to this post) on
its utility will be appreciated:
Flex 3 - Embedding asset types:
You can embed Button and MovieClip symbols in a Flex
application, but you cannot embed ... Alternatively, if you use the
SWFLoader control to load the Flex
Link:
http://livedocs.adobe.com/flex/3/html/embed_4.html
BrideL.OrG Blog Archive Importing a SWF into Flex with AS3:
Jul 4, 2006 ... Just to say thanks for posting the SWFLoader
example, the ONLY one on the ... controlling frames using the
movieclip details via SWFLoader.
Link:
http://www.bridel.org/?p=9
All Classes (Flex 3):
mx.skins.halo, The skin for the border of a SWFLoader or
Image component when ..... mx.core, FlexMovieClip is a subclass of
the Player's MovieClip class.
Link:
http://livedocs.adobe.com/flex/3/langref/class-summary.html
Cannot load the SWFLoader content in a movieclip - Flex
India:
May 17, 2007 ... implementation of movieClip class in as2 is
different from as3. ... Im just trying to load a .swf in flex. Im
using SWFLoader
Link:
http://groups.google.com/group/flex_india/msg/85ec872c7d94851a
S (Flex 3):
SWFLoader. A flag that indicates whether to scale the content
to fit the ..... for the content in the browser, such as
'www.adobe.com' or 'www.example.org'.
Link:
http://livedocs.adobe.com/flex/3/langref/all-index-S.html
SWFLoader gotoAndStop [Archive] - ActionScript.org Forums:
Jun 27, 2006 ... [Archive] SWFLoader gotoAndStop Flex 2 &
3. ... Is there any way that it is possible to cast the movieclip
to flash 9 movieclip?
Link:
http://www.actionscript.org/forums/archive/index.php3/t-109586.html
Disclaimer: This response is generated automatically by the
Adobe NewsBot based on Adobe
Community
Engine. -
How do I get the EMBEDDED HTML CODE after creating a SLIDE SHOW using Photoshop Elements 8?????
You're welcome. How about awarding them duke stars?
edit: cheers! -
No audio track from .mts file created with panasonic camcorder
I am running windows 7 and adobe premiere 6. I have a few .mts files recorded using a panasonic hmc camcorder. These videos played fine with sound on the computer. But once they are imported into premiere, there is no audio, in fact the track is missing. Does premiere not support .mts files? Is there a way to convert them into a format supported by premiere?
Is the audio recorded as multi-channel? Is it PCM or Dolby? Try importing clips from the camera that have stereo audio. If it turns out that multi-channel audio is the problem, load the clip into Audition (if you have it) and process it there. If you don't have Audition you could try the open-source program Audacity, but I don't know how well or even if it supports multi-channel audio.
Jeff -
How do i print from an app created with adobe dps from my ipad
I know Apple's own iOS apps can print from iPads and iPhones using AirPrint.
How do I enable support for printing from an Adobe DPS app on an iPad or iPhoneNeil,
Sorry to resurrect this old thread, but I was able to do this in the past, but it no longer works (probably because something changed in an update). We needed a folio in our app to be able to download and print a PDF. I set up a web page with a poster image placeholder that, when tapped (or clicked in a web browser) would download the PDF, display it, and from there you could print it. Tested successfully in both a live mulit-folio app and Adobe Content Viewer. It's been a while (almost a year) since we tested this, and I returned to it because a customer is asking for that, and found that it no longer works. I can't remember the last step (the "print it" step) and how it was invoked, but I think it was via the iOS share icon (the square with the arrow poking out the top) that no longer presents in the app. Am I going crazy, or is this something that was consciously shelved by Adobe? We really need this to work!
Thanks,
Steve -
Can't install packages from local repository created with repo-add
I did the following
repo-add /mnt/packages/repo.db.tar.gz /var/cache/pacman/pkg/*
cp /var/cache/pacman/pkg/* /mnt/packages
on one computer
connected the hard drive to another computer and did the following:
added the pacman.conf configurations as follows
[repo]
SigLevel = PackageRequired
Server = file:///mnt/packages
then ran
pacman -Sy
which worked.
and then I tried to install a package using pacman -S.but all the packages give me :
error: packagename: missing required signature,File:///var/cache/pacman/pkg/packagename is corrupted(invalid or corrupted package(PGP Signature))
then i tried:
pacman-key --init
pacman-key --populate archlinux
pacman -Syy
which didn't work and made no difference.what can I do?anatolik wrote:
One thing that comes to my mind is that repo directories have *.sig files next to the packages, see file structure here http://mirrors.kernel.org/archlinux/testing/os/x86_64/
But cache directory /var/cache/pacman/pkg/ does not have these sign files and it is why pacman complains. Where to find the sign files locally? I do not know the recommended way, but I see that /var/lib/pacman/sync/$REPO.db contains signature information, so you can write a script that extracts it.
Or you can use `repo-add --sign` and sign packages with your key, but it is not very secure.
PS Instead of using repo-add you might want just use repo files from /var/lib/pacman/sync/
I will try the above and report.
but it shouldn't be necessary according to https://wiki.archlinux.org/index.php/Pacman_tips -
How do I remove a duplicate browse sequence from HTML help created with RoboHelp 8?
One of my projects in a merged projects is showing two browse sequences in the merged system. I've tried deleting the project from the merged system, recompiling, checking that the browse sequence doesn't appear in the merged system, then adding back the project. The duplicate browse sequence appears again. I've also checked the individual project and there is no duplicate browse sequence when I view iit. Any ideas?
Screen shot below. Note that the browse sequence for NAACCR Data Standards and Data Dictionary is duplicated in the drop down. A colleague helped me fix this by opening the .hhp file in Notepad and deleting a second entry under [MERGE FILES] for that component of the merged project. This problem apparently happens when a merged project is copied and modified. The .hhp file can end up with two entries for a component, one with a full path and one without. I deleted the duplicate with the full path, recompiled, and the duplicate browse sequence disappeared.
Thanks for trying to help. -
Dear Community,
I tried to fix this issue but i have to admit i'm stuck right now :
Computer on windows 7 SP1 with Adobe Reader XI and Adobe Standard X installed.
On Outlook 2010, I convert a folder to a PDF file so i can navigate offline and share the mails with colleagues.
At the end of the conversion, Adobe Standard X opens and all the tree architecture of the PDf is available, browse in all files, open attached documents...
But as soon as, on my computer or on other computer only with Reader XI, the PDF file (whatever it's size and number of mails inside) is to be opened with Reader, there's a message saying that flash player compatible with Adobe Reader and Acrobat as to be installed.
There's no precision regarding the flash version to use, and clicking on the link to open web browser, no page is opened (no internet issue).
After 1 minute, Reader finnally opens but only displaying the first file of the PDF (in my case the first mail of the outlook folder).
i have the latest flash player version installed
Can anybody tell me if this problem is known ? or if someone knows how to fix it so the pdf file can be fully used in Reader ??
Many thanks for your help.
Regards
AppleAddictHi Kiro ,
Did you try opening that file in any other browser ?If not ,please try doing that once and see if that works for you.
Try Repairing Acrobat once and see if that helps.
Launch Acrobat>Navigate to Help>Repair Acrobat Installation.
Regards
Sukrit Dhingra -
Text in Fla, created with Mac is not alligned in Windows
Since I work on two machines with different OS, one with Mac 10.8.2 (Flash CS5.5) and one with Windows8 (Flash CS6) I found out that Text inside boxes (shapes) are not alligned when you open it in the other OS.
This is a screenshot from the SWF exported with a Mac.
This is the exact same output, only exported in Windows.
If I save the Fla in Windows, then export it on a Mac, the file looks fine again but still, I would have to export every file on a Mac + this might cause problems when I edit these text boxes.
I noticed that in CS5 (also on Windows7) already and had hoped it will be fixed in CS6 but apparantly it is not.
Am I missing something here? I am using the same Publish settings in both OS (latest Flash Player + ActionScript 2.0).if you want to give jsfl a shot (works in As2, too)
This little script parses your whole fla file puts all your TextFields in an Array and let you adjust the lineSpacing in a loop
var doc = fl.getDocumentDOM();
var textFieldArray = fl.findObjectInDocByType("text", doc);
for (i=0; i<textFieldArray.length; i++) {
fl.selectElement(textFieldArray[i]);
fl.getDocumentDOM().setElementTextAttr('lineSpacing', -4);
You would basically end up with two different swf versions that would show acocordingly to the users OS. -
Embedding Button symbol from swf
Hi,
I am embedding a Button Symbol into Flex from from a swf. The Button inside the swf has an up and over state. Now I embed the symbol into an image in Flex. The image is in one of my states.
All works fine initially in Flex as far as the up over state. Now the The problem is when I go back to the base state and then back to the state with the embedded swf symbol.....it initializes still in the over state, until I mouse over then mouse out and now its in the Up state. What could be the probelm here??
thanks for taking time to look at this!
-Mike
// -- SWF EMBED ---
[Embed(source="skins/ICD9_ReferenceCodes_v2_3_blue.swf", symbol="back_btn_button")]
[Bindable]
public var BadApple:Class;
// -- SWF EMBED END --
<mx:State name="search_code">
<mx:RemoveChild target="{vbox1}"/>
<mx:SetProperty target="{text1}" name="text" value="Code Search:"/>
<mx:SetProperty target="{text1}" name="x" value="130"/>
<mx:SetProperty target="{text1}" name="y" value="136"/>
<mx:RemoveChild target="{image1}"/>
<mx:AddChild position="lastChild">
<mx:Image id="image_BackBtn1" x="11" y="74.95" source="{BadApple}"
click="OnClickNewSearch(event)"
/>
</mx:AddChild>
<mx:SetProperty target="{image_BackBtn1}" name="y" value="74.95"/>
</mx:State>Alex,
I'm not following you, why do I need a button?.....can create Mouse over and out events like this?:
var event:MouseEvent = new MouseEvent(MouseEventMouseEvent.MOUSE_OVER.);
myImage.dispatchEvent(event);
var even2t:MouseEvent = new MouseEvent(MouseEventMouseEvent.MOUSE_OUT.);
myImage.dispatchEvent(event2);
would this work?
BTW any idea if this is a Bug or known issue that I'm experiencing?
-Mike
Maybe you are looking for
-
Facing error while booting tuxedo server
Hi All, When i try to boot the tuxedo server, it is being booted properly, But in the ulog, i found an error: Failure to post event: Error 6, TPENOENT - no entry found, {osserr=0} So, that particular tuxedo server is not responding fine. Kindly, help
-
'stopped' status when opening pdf in Firefox
We're having problems opening the pdf's on our site in Firefox with Adobe Reader. More than 50% of the time the pdf will not open and the status bar shows 'stopped'. It's intermittent, the same file can fail to load 3 times but work on the fourth a
-
Why doesn't exploit work in Arch?
Can anyone explain why this exploit does not work in Arch? http://www.exploit-db.com/exploits/15274/ It does indeed give you root privilege in Fedora 13, but when I try it in Arch both the gnome-terminal and xterm windows simply disappear after enter
-
Hi I want to find out on which page a specific iViews is used, that means, where in the (user specific) navigation the iView will be displayed. When I traverse the navigation nodes, I get with getName() something like "ROLES://portal_content/folder/p
-
Failed to resolve JCO destination name 'WD_ALV_METADATA_DEST' in the SLD
Hello, I've got the following problem and hope anybody here could help me with this issue. There are two servers (CE 7.1). One DEV and one PROD system. At the DEV system "create print version" functionality of an alv-table in my visual composer app w