Publish Javascript To A Separate File During CS4 Publish?
Nov 12, 2009
While publishing my movies in CS4, I noticed that the javascript required to embed the movie in a web page was published as inline javascript in the published page. This means that code would be downloaded for each page my movie is on. Is it possible to configure Flash CS4 to publish that javascript to a separate .js file, instead of having to manually copy-paste that each time??
If no, I believe that js is independent of the Flash movie (please correct me, if I am wrong). So, can I copy-paste that javascript to an external file just once, and use the js file for all my movies being published??
Is it possible to make desktop Air application by using HTML/JavaScript and Flash?Actually I want to make an Air app (which is for desktop) by using flash and want to use HTML , javascript and CSS as well.Is it possible ?
Ive made a movie that add strings from several input text fields to an array. This array is sent from the flash video to php. This is working fine when I preview the movie as Flash. The php script prints the variables as intended.
But when I preview it as html the arrays are all empty...
[AS] on (release) { number_of_attr1 = main._currentframe + 1; suggestions1 = new Array();
I want to design a simple website. My main problem is that when I publish it I have a border around my swf .How can I publish my fla file and make it occupy full browser window - without any border at all - I want just my swf !Whats the proper stage size and scale settings? Do i have to add some code in the exported html?
I have recently taken over a project started by another person who has been let go due to lack of performance and other issues.He has created a FLA file and an .exe file. But I am have been asked to place the movie on to the internet.The FLA file that I have will not let me publish an SWF file to be uploaded to the internet, in fact it will not let me publish anything.I have changed the publish setting but when I go to publish it the SWF file is not created.I just want this file in SWF format and for it to autoplay when the website is loaded.
Extra Information: I have used a exe to swf converter to convert the EXE file that was already made into a SWF file for the internet. This does make an swf file but the file is not editable and will not autoplay once it is uploaded.
For the record, I just want to say that I think it is totally absurd that Adobe shipped Flash CS5 with the ability to ONLY publish AIR 2.0 apps...which hasn't been publicly released yet. I've been working on an AIR app for several weeks and needed to upgrade from Flash CS3 to CS5 to take advantage of the new Text Layout Framework. Now, my app can't be installed by my customers because I can't publish for a version of AIR they can access!! How this decision got made baffles me. Adobe needs to be on top of their game these days and this blunder makes it that much more difficult to defend the Flash/AIR platform that I love so much. Flame over.
Now, for the workaround I've discovered. To get Flash CS5 to publish an AIR 1.5 file, I first published an AIR 2.0 app. Then I went into the app descriptor xml file and changed the version from 2.0 to 1.5 <application xmlns="http://ns.adobe.com/air/application/1.5"> Then I deleted the xml nodes in that same file that are specific to AIR 2.0 (<visible>, <fullScreen>, <autoOrients>, <aspectRatio>, <renderMode>). I locked the app descriptor file so it couldn't be changed by the next publish. Then I deleted the previously created .air file and the .swf file. I then republished the app from CS5 and it was able to install under the publically available version of AIR (1.5.3.9130).
I've been working on an AIR application with Flash CS4 (AS3) for the last two days. Yesterday when publishing I was able to install the application (or overwrite existing version) without a problem. Now whenever I publish a new AIR file, it constantly tells me it cannot be installed because the "AIR file is damaged".
There are no actionscript errors or compiler errors when publishing, and I've generated a new certificate at least 3 times already thinking that may expire daily?
I have a bunch of Flash files i will need to publish for FlashLite Player 3.1 format with the "compress" option unchecked. Can i do this without having to open each FLA file and doing a manual publish? How for free?
this is the first time i encounter this problem.. I had the problem where a file would not open correctly which was also addressed at this forum. But this one is different. this file was created (from what i remember) in Flash 8, then opened/saved in all possible flash versions for updates in time. While it will open just fine, it will not publish. The publish window with the percentage will open up for a split second, then it will close with no messages whatsoever, no actionscript errors, nothing. F12, the same thing again. No possible settings could solve this.
I am willing to send the file for testing of course, have tried to publish using Flash cs4 and Flash cs5. I thought of going back to Flash 8 by opening the file and saving to a previous version but as soon as i open the file in Flash cs3 (while the file has been saved as cs3) it will not open the file with an error message that i cannot remember right now.
I'm having a little trouble with my publish settings setup.Let's say that I have a file called MyFirstAnim.fla under the folder AnimSource.Then, I set the swf publish path to ../AnimFinal/MyFirstAnim.swf, and everything is great.Now, I need another file almost identical the first one, so I copy MyFirstAnim.fla and rename it to MySecondAnim.fla.hen I publish the file my MyFirstAnim.swf (under the folder AnimFinal) got overridden.So, I removed the swf part of the publish setting, leaving just the relative path (../AnimFinal/). Am I smart or not?
When I publish a "fla" a file in CS5 environment, got following error.
ComponentShim (Compiled Clip), Line 1 5000: The class 'fl.controls.TextInput' must subclass'flash.display.SimpleButton' since it is linked to a library symbol of that type.
I am working on an AS3 file for one of my webpages, in Flash it is 660 x 2800 pixels in size, which is relatively large, and to view the entire file contents i need to have a zoom level of 40%! Once publish as an SWF file and uploaded to my webpage, the file appears very small!! I expand the file to as large as possible on the webpage and the file still appears undersized. Obviously I wish it to fill the whole content area.
i have problem with publish with fms.i have a song play in back i have microphone to sing and camera when publish in mp4 the voice is ok and camera good. But the song play in background dont have good quality.
1- can i separate voice and song in my microphone? if yes do you have an exemple? because the sound o f voice is ok but song in background not good
2- else can mix my original song mp4 to camera and microphone? and publish record all with fms?
How can i publish this so it becomes a stand alone file,and give it a custom icon?Actually, it doesn't have to be completely stand alone. As long as they have flash player installed.
i need to share a preview banner to my cliend , but i want to evite the decompile risc. The cliend may decomple my banner and stole it . I need a safe way to do it .
trying to work out why Flash is publishing an unexpected swz file with one recent project. From what I can tell this is an optional run-time library used to reduce file size. My problem is that it is causing all sorts of text formatting grief when I try to import my swf into Adobe Captivate. how I can publish a swf without generating a swz? Why on earth has Flash opted to generate this unexpected file in the first place (assuming user error, but can't work out what I've done)?
am trying to export/publish a swf of a dress up game I made so I can put it in Dreamweaver and upload it to my site but I keep getting this error message:"Error Creating Flash Movie File: Be sure the destination file is not locked or on a locked drive. Also, check that the file name is not too long".I am also unable to test the movie, it gives me the same error message.
i made a simple nav bar with a dropdown menu it works fine in flash mode and preview but when i try to embed into html it only show the nav bar but not the dropdown menu.
I am writing to a text file via FileStream, and it writes just fine when I do a publish preview (control + Enter), but when I publish it as a projector and run the exe, it does not work.
My publish settings are set to Player: Adobe AIR 1.5 Script: ActionScript 3.0
My swf file is rather large, so I tried changing the quality settings and the publish settings, but nothing I do seems to change the size of the final swf.
I am trying to export the button symbol from Flash and publish swc file for Flex.I have successfully export 3 buttons which are playBtn, stopBtn, pauseBtn from flash and add swc file to my flex actionscript files.my code is:
private var stopBt:stopBtn; private var playBt:playBtn; private var pauseBt:pauseBtn;
private var mutebt:muteBtn // no such datatype.....
error message....an internal build error has occurred, right click for more information.Since I add swc from flash in flex, I don't have to import these button...However, when I tried to create 1 more button (muteBtn) in flash and did the same thing again in flex, it gave me "an internal build error has occurred, right click for more information" error.When I created a var and tried to type :, there are no muteBtn datatype pop up.... I have spent 2 hours on this crazy crap and don't know WTF is going on.
I have created a main file,which has a navigation with buttons.Each button loads an external swf file.In one of the external swf files I have created an xml gallery.I have created some empty movieClips which work as holders and they load the images.It works great when I publish it,although it doesn't work when I publish the main file.It just doesn't load the images.