Problem with embed swf in fla
hallo,
I am trying to embed an SWF into an FLA (My website)
I want to embed an SWF movie on page 4 of my website along with other content.
There are a lot of tutorials on the web, but to be honest, I get so confused, a lof of them have errors so I figured i'd ask here if anyone knows of a good, simple tutorial on how to embed SWF in FLA.
thanks so much.
The mask would be a separate layer that sits above the layer your animation is in. So if you right clicked the layer the animation is in and selected mask, then that's not masking it, it turning it into a mask. What you want to do is create another layer above it and draw a rectangle that would be the same size as the stage of the swf. Then if you right click that layer it and select mask, the rectangle will be the mask for the anoimation--allowing only what is beneath it to be viewed.
Similar Messages
-
Problem with embed font such us some character
Hi i have some problems with a font.
I have this simple code.
[CODE]
package {
import flash.text.AntiAliasType;
import flash.text.TextFormat;
import flash.text.TextFieldAutoSize;
import flash.text.TextField;
import flash.text.Font;
import flash.display.Sprite;
[SWF(backgroundColor="#FFFFFF", frameRate="31", width="700", height="500")]
public class ExampleEmbedFontKoz extends Sprite {
private var mytextfield : TextField;
private var format : TextFormat;
public function ExampleEmbedFontKoz() {
Font.registerFont(AssetManager.kozgopro);
createText();
private function createText() : void {
mytextfield= new TextField();
addChild(mytextfield);
mytextfield.embedFonts= true;
mytextfield.width= 400;
mytextfield.border= true;
mytextfield.autoSize= TextFieldAutoSize.LEFT;
mytextfield.antiAliasType= AntiAliasType.ADVANCED;
format= new TextFormat();
format.font="KozGoPro-Regular";
mytextfield.defaultTextFormat= format;
mytextfield.text= "try embed KozgoPro and write puntualitation.\n i can't view this letters: è é ò à ù ì";
[/CODE]
AssetManager
[CODE]
package {
public class AssetManager {
[Embed(source="KozGoPro-Regular.otf", fontName="KozGoPro-Regular",mimeType="application/x-font", fontWeight="normal", fontStyle="normal" , unicodeRange="U+0021-U+007B,U+0400-U+04CE,U+2000-U+206F,U+20A0-U+20CF,U+2100-U+2183,U+002 0-U+002F,U+0030-U+0039,U+003A-U+0040,U+0041-U+005A,U+005B-U+0060,U+0061-U+007A,U+007B-U+00 7E")]
public static var kozgopro : Class;
[/CODE]
when i write character such us è ò à ì don't view nothing.
I put file online... [url]http://depositfiles.com/en/rmv/6620791594111859[/url]Thank i added this range and now works...
U+00E9,U+00E0,U+00EC,U+00ED,U+00F2,U+00F3,U+00DA,U+00FA,U+00F9
this range are lettere è ò à +ù ì -
How to embed swf in fla?
can anyone help me how to embed swf to an fla?
thnx!If the swf has actionscript in it, then you cannot embed it and still have it work (it will lose its code), so you need to load the file dynamically instead.
-
I am trying to import a SWF file that i have exported from indesign CS5, as i want to create a pdf that has interactive page curl and page turn.
But whenever i reimport the file it is really low resolution.I agree with Steve, you really should think is it absolutely necessery to try to place your SWF into PDF... you probably will face some problems if you do that.
If you really must, you have to understand some basic rules about working with palced SWF (and videos too) in InDesign.
The pixelated image you see above is not actual SWF. It´s an element called poster. When you place a SWF or video to your layout in InDesign, you may choose a poster for it. It´s kind of placeholder for actual SWF or video and will be shown when actual content is not playing. InDesign uses poster also as an appearance for your SWF/video file while you are working with your layout. InDesign can´t show actual SWF/video content in working area.
You have few options how to define your poster. The most popular one is to grab it from SWF or video file. You can choose any frame to be used as a poster. Except that poster is not that frame itself, it´s a "screenshot" of that frame. Which means of course a risk that it may be pixelated at some point. Resolution you will define in Export SWF window´s Advanced tab effects to posters too. So be careful with lower resolutions if you want to avoid pixelation.
Another, and IMO more professional method is to use good quality image as a poster. You can prepare your poster image in any regular image editing software. -
Problems with embedding swfs into Director 11.5
Hello everyone,
I am hoping someone can help me and please bear with me - I don't know a lot about director - I can do some Lingo and get around in the program to make things work.
Right now I am working on an interactive presentation where the user can click a button to view an animation. I am using Director 11.5 for my presentation and have made my animations in After Effects CS3 -- from there I converted my .mov files to .flv files using the Adobe Media Encoder CS4... then I took my .flv file into Flash and published it as a swf file.
The problem that I am having is that when I play the presentation (within Director and after publishing the .app/projector file) the swf files are playing - but there is all this glitchy-artifact stuff all over them. Does anyone know why this would be happening? When I play the swf files in the flash player they look great. Before, when I was using Flash MX and Director MX, I never had any problems with embedding my swf animation files - and they played great - without any artifact. Any and all help would be much appreciated as this project is due in the next few days and I would prefer to figure out a solution rather than uninstalling Flash CS4 and Director 11.5 - and going back to MX.
I toyed with the thought that my video card isn't good enough but I tested the .app file on another machine and the glitchy-artifacts were still there. I have attached a jpg showing the artifact that appears.
I am running Mac OS X 10.5.7
Dual 2 GHz G5 PowerPC
ATI Radeon X800 XT
Thank you!Sorry... here is the image again and I think the problem might be my machine -- it is very old (~4+ years) and when I tested my .app on a newer intel mac here it worked fine... but maybe I am missing something -- it seems odd that I can see the swf fine in flash player but it is glitchy when played through director or the .app projector file
-
Problem with external .swf, please help
Hello.
I'm new here so cheers to all. Sorry if I chose wrong forum for posting this question.
I'm newbie in Flash and started building flash website with some tutorial. Now, I built navigation and content with this lines of code:
var myMenyArray = [najave, onama, asesoar, kontakt, ponuda, klub, arhiva];
for each (var btn in myMenyArray){
btn.addEventListener(MouseEvent.CLICK, onBtnClick);
function onBtnClick(event:MouseEvent):void{
pages.gotoAndStop(event.target.name);
and then added this one for loading .swf
var Xpos:Number = 150;
var Ypos:Number = 180;
var swf:MovieClip;
var loader:Loader = new Loader();
addChild(loader);
function btnClick(event:MouseEvent):void {
removeChild(loader);
var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
loader.load(newSWFRequest);
loader.x = Xpos;
loader.y = Ypos;
addChild(loader);
galerija.addEventListener(MouseEvent.CLICK, btnClick);
Now, my gallery loads when I press "Galerija" in navigation like I wanted, but when I want to show Home or some other content from the nav bar, gallery.swf still appears in front of content.
Can anyone help me with this? It's probably eas, I don't know, but I spent a whole night trying to fix that and I'm here now like last chance.
Hope that I've explained right my problem.
Thanks anyone who can answer me.
Cheersuse:
var myMenyArray = [najave, onama, asesoar, kontakt, ponuda, klub, arhiva];
var loader:Loader;
for each (var btn in myMenyArray){
btn.addEventListener(MouseEvent.CLICK, onBtnClick);
function onBtnClick(event:MouseEvent):void{
if(loader){
removeChild(loader);
loader=null;
pages.gotoAndStop(event.target.name);
var Xpos:Number = 150;
var Ypos:Number = 180;
var swf:MovieClip;
function btnClick(event:MouseEvent):void {
if(loader){
removeChild(loader);
loader=null;
loader = new Loader();
addChild(loader);
var newSWFRequest:URLRequest = new URLRequest(event.target.name + ".swf");
loader.load(newSWFRequest);
loader.x = Xpos;
loader.y = Ypos;
galerija.addEventListener(MouseEvent.CLICK, btnClick);
And for every frame stop(); where content should load.
My gallery .swf is in the same folder with this .swf. -
Captivate 5.5: Problems with export SWF to MP4
I recorded a screencast of several moving graphs by using the FMR-mode in Captivate 5.5. The flash file looks pretty good, but I am unhappy with the MP4 that I exported afterwards because it is jerky. Is it usual that there are losses due to the compression or did I just use the wrong settings? Is it possible to export an MP4 file that looks just as good as the SWF? Do you have any recommandations regarding the settings?
I am inserting some features with Final Cut afterwards. To avoid further compression losses, I would appreciate some hints regarding the settings in Compressor. The final file shall be an MP4.
Do you think with the HD screencast function of Captivate 6 or 7, my problems would be solved?
Thanks a lot for your help!Hey Lilybiri,
thank you for your answer. I tried pretty much everything, default settings like SD / HD widescreen as well as custom settings in all different kinds. I even implemented a 30 frames-extra (http://www.tecwriter.de/wordpress/captivate-5-5-exklusiver-spezialtipp-mp4-output-verbesse rn/), but nothing helped. and i am not sure, if captivate's FMR function is the problem, as the swf is much less jerky. -
Problem with multiple .swf in the same page
Hi everybody,
I got a small animation written in actionscript 2.0. I need
to load it several times in a webpage (about 20 instances), but
seems to be too many work and the web browser freezes.
Anyway, it's a relatively simple script (not complex
arithmetics per cycle, although two or three color gradient
refreshing), so I think the problem could be the fact of having so
many instances running at the same time...
Is there any way to fix this problem without reducing the
quality of the animation?
Thanks a lot!Sorry Kglad, I didn't mean to be rude. With "No coding
errors" I meant the animation itself runs with no errors. I'm sure
you could run the 20 instances with no freezing (that's why I put
the post :) ) But I'm affraid it is an animation for a client, so I
cannot distribute the code.
Perhaps I didnt explain the situation clearly enough (in part
because of my poor english...).-
- By 20 instances I mean 20 separated embedded objects in the
html
- The animation is relatively simple. A turned on candle, in
each cycle I calculate the next position of the flame (that
oscilates from left to right). The flame is composed by 4
concentric gradients. There is NO loops, only an 'onEnterFrame'
function refreshing the flame each time.
- It's true that I got plenty variables at the _root level.
If that could be the problem, how can I workaround it?
- It is my first time trying to embed so many objects at the
same time too. No idea if the problem could be the way I embed the
object from the html :(
- The only thing I can guess is that when a cycle of one of
the object is running, the other 19 objects must wait their turn.
That would explain why the more instances I run, the worst results
I get. In that case, I wonder if there's a way to run them in a
kind of asynchronous mode, just guessing...
Any other comment would be appreciated. Anyway, thanks a lot
everybody for your colaboration. -
Problems with a read only fla file.
Hello,
I need help finding out why some of my .fla file will not save as the same name. When I try to save it says "Cannot save file! This file may be read-only or is open in another application. Save using a different name or close the file and try again." I did evetyrhing it says and it still does not work, does anyone know what the problem is?
Thanks in advanceHi,
I'm on a Mac (OS X 10.6.7) and using Flash pro CS5 (and Flash Builder). I started to get a warning in Flash about jagged fonts. I used Mac's font book to validate and clean up my fonts. After that, whenever I open this one FLA, it ask me to map some fonts, which I did, then it opens. After opening, the Flash IDE becomes unusable, most of the text in the palletes disapear and I can not tell what most things are. I also tried setting the fonts to defaults, same issue, although that did fix the issued for half day, it's now not working, and often crashes when I just click on a text field. I started my Mac up in safe mode, the FLA does work fine in Safe Mode, but I can't remap the fonts 'cause all none system fonts are dissabled in safe mode.
I was getting a lot of crashes when trying to use Mac's Font Book. After validating fonts, opting to remove bad fonts would crash font book. It took about two hours to clean up my fonts. At least I think they are good now...
I think I'm going to go through every text field in the FLA in safe mode and change them to a system font (and write down what font I wanted the text field to be), then restart the Mac in normal mode and see if I can remap the fonts in the Fla. Unfortunetly this Fla is huge with many text fields : ( -
After I embed flv video to Flash CS6 timeline, I only see black square and no video.
Please help
I go to
File
Import Video - mark option "Embed FLV in SWF and play in timeline"
Symbol type - Embedded video, all options marked except audio
Finish
Hit Enter or from Control menu - Test movie or Test Scene
All I see is black square and nothing elseUnfortunately I don't think we can recommend something like that as content on there tends to be copyright to its owner. You'd need to ask permission before grabbing the content.
If you have permission then I'd use Firefox with Flash Video Downloader but I download in MP4 format and then use Sorenson Squeeze (or Adobe Media Encoder) to convert that to an On2VP6 FLV. I've done it in the past for clients who lost their own content but had some up on YouTube. Use addons at your own risk and be sure to research them. -
Problem with exporting SWF for web - missing last 5 seconds
Hello everybody.
I´ve got this problem that when I render my animation everythings OK, but when I try to export it as SWF it doesn´t include last 5 seconds. There are only shapes & solids used in the animation (masks, scale etc.) so pretty simple stuff. Animation has 35 sec. Is there any time limit or do you have any ideas how to fix this? I checked rasterize all unsupported features that did nothing.
AE CS6
Thank´s a lot,
MarekThis could be a bunch of things. It could be that the last five seconds are using an effect that is not supported so it needs to be rasterized. Frankly, AE is a lousy, let me repeat that, lousy tool for creating SWF files. Your best option is to render a video compressed in the H.261 format and use Flash to embed that video in your SWF file. The SWF will load quicker, be smaller, play on more devices and be more professional. The project will still not be mobile compatible which, now days, means you're losing 60% of your audience.
-
Windows vista and problem with association .swf files
I have win vista 32bit. Downloaded and install adobe flash player from adobe site. I have some file with .swf extension but can not get to work with adobe flash player 10.1r52. Ii can asociated ths type of file with adobe flash player. Where is the adobe flash player after installation_in which folder? Confused. Help.
Hi, The Flash files are at C:\Windows\System32\Macromed\Flash
Also, if you used IE to Install Flash Player, then in Tools, Manage add ons you also need the Shockwave Flash Object,
the ActiveX Control and it must be Enabled. This is Installed when Flash Player is Installed.
If you are using Firefox or another non-IE browser, then in the plugins, there will be a SWF (version number of Flash Player) and it must be Enabled.
Hope this helps,
eidnolb -
I have serious problems with Muse swf files containing movies. How I can fix them?
I created swf format documents with InDesign. These documents contain movies in mp4 or flv format. When I put these documents in Muse I programmed processes work perfectly except the films, which are not displayed. I have observed that in the folder that is generated when exporting as HTML does not contain any video files swf containing original documents. Please, I need a solution. Thank you!
Hello,
Please take a look at this informative post which talks about the same issue: http://forums.adobe.com/message/5123447
Hope this helps.
Cheers
Parikshit -
Please help - Problem with loading swf's (running very slowly)
Hi
I have posted this problem up in the last few days so I built a quick demo of my problem. Can somebody please download it and take a look at it and see what I'm doing wrong?
You can download it here at:
http://www.bounceworld.ie/download/Demo_Test.zip
The external swf's when loaded.....run very very slow; sometimes unresponsive as if there is a script running in the background. I'm using keyboard commands to navigate through the screens - eg:
on (keyPress "<Space>") {
gotoAndStop("scene02", "firstframeLabel");
Thank you for your help!!!!Hi
I'm trying to use Key Listeners to solve my problem.
I don't know much about key liseners so can somebody help me out.
I have the following on a keyframe yet it still wont jump to the certain frames when I press the relevent keys. Am I missing something?
stop();
KeyListener = new Object();
KeyListener.onKeyDown = function() {
if (Key.getAscii() == 38) { // UP key
gotoAndStop(89);}
if (Key.getAscii() == 40) { // DOWN key
gotoAndStop(91);}
if (Key.getAscii() == 37) // LEFT key
gotoAndStop(88);}
if (Key.getAscii() == 32) { // SPACEBAR key
loadMovie("application_01.swf", "container");} -
Problem with embed tag with PDF
Dear All,
I am using <embed > tag to embed the pdf file in my jsf page as below :
<h:panelGrid border="0">
<h:panelGroup>
<h:outputText value="***********"/>
<f:verbatim >
<embed src="D:\Img\ppp.pdf" height="100%" width="100%" />
</f:verbatim>
<h:outputText value="##########"/>
</h:panelGroup>
<h:selectBooleanCheckbox value="true" ></h:selectBooleanCheckbox>
</h:panelGrid>when i run the application i am getting java script pop up with header Adobe PDF Document and message as Access denied.
please help
thanks in advanceHi Raymond ,
It is not related to JSF actually when i use <embed> tag.if i give the path of the pdf which is in my local machine it is giving that access denied.
I pasted that pdf in my war and it is working now
Maybe you are looking for
-
How to access my pc file from my mac?
I have a PC running XPsp2 and a MacBook running OSX 10.5 and I'm just wondering how to access files from my PC while on my Mac. The Mac recognises my PC network but every time I try and open the sharedDocs folder the mac tells me: "the operation cann
-
Hi All I created the BPEL process to FTP csv file from FTP Server with FTP Get Adapter with file type "ASCII" mode. Even i mentioned the directory name for incoming files as "/u12/usrvis/noble" and provided "Input.csv" file name in Incoming files wit
-
I execute the configuration wizard to create a domain with Portal, forms, REports and Discoverer 11.1.1.3 (before I install Weblogic 10.3.3 and OFM 11.1.1.2 only software): Executing Task: Iniciando Servidor Gestionado: WLS_REPORTS XXX: adding task:
-
Change of Country while ordering calendar???
Hi, I am from Australia and have an Australian iTunes account. I bought my Mac in Oz and am currently living in the UK. I have made a calendar and now want to ship it to Australia but now iPhoto thinks Im a new user with a UK iTunes account! When I t
-
Quicktime movies no longer working
Why would quicktime files suddenly quit working on my site? They've always worked fine. They appear fine in iweb. I've not moved folders or anything but now the big Q just sits there where the movie files would normally load right away. Any ideas? Th