Center a SWF file when Publishing
I have been using Flash for a while Flash 8 and now Flash 9. I dont know too much about the program, someone wrote the program for me and I update it. When ever I publish the Site to upload to my server I have to go into the HTML file and insert <center> twice to get the site to be center on the web.
If I dont do it the site is when viewed online gets left justified.
It is not a big deal to edit the HTML file but every time I do it I figure there must be some button i dont have checked in Flash to just do it automatically.
Seems like with such a huge and powerful program that must be an option that I am missing. Can anyone let me know to to automate this task.
Thanks
Aaron
If you find yourself doing something like this everytime, or most of the time, edit the Default.html file here: (duplicate and rename first so you can revert if need be)
Win:
C://Documents and Settings/USER/Local Settings/Application Data/Adobe/Flash CS3/en/Configuration/HTML/
Mac:
/Users/USER/Library/Application Support/Adobe/Flash CS3/en/Configuration/HTML/
Next time you publish your new myflashfile.html will reflect the changes.
Similar Messages
-
Missing swf file when publishing
This is a new one for me anyway. I just
published a file and the only thing showing is the .htm and the js. NO SWF! What do I do?Post a link to the page so we can see what you have done.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"cleere1000" <[email protected]> wrote in
message
news:ff8m70$s44$[email protected]..
>
placing a swf file in dreamweaver works in the check brower
mode.
> When
> uploaded the browser brings the page up but no flash
file plays
> and
> no error notices are seen ( just the page withe no swf
playing)
> I
> have checked the upload files and they are correct. Mac
10.4
> Dreamweaver 8
>
> Thanks
> Bob
> -
How to ignore diagnostic files when publishing cloud service
Hello.
when i am publishing a webRole,
process is failed because the values in the diagnostic configuration file do not match the Production profile.
the diagnostic file is for our dev env only.
is there a flag/attribute that can be used to ignore the diagnostic files when publishing with a specific profile ?
Thanks.Hi,
According to your description, you question is related to Web role. I recommend you to ask in the forum below for professional assistance as the members in the Web role would be more familiar with publishing web roles:
https://social.msdn.microsoft.com/Forums/en-US/home?forum=windowsazuredevelopment
Best regards,
Susie
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
QUESTION ABoUT SWF FILES AND PUBLISHING PROJECT
hi
well as isaid before i m new i nthis
imade soome practices is going well i trie adding a componet wich work very nice liek the apple covverflow adding transition and every new image in every new file i export this in swf format it give me my files deployto web run local and ria aplication ok well m y question is when i add this swf file to my web design in other file project or project in another state it works sooo goooood
but my question is when i publish tis it give mes agai na run local deploy to web and ria i have to upload this to host and server or both projecst already created mmmmm idont unerstand this anyway when i run my last run local file / main.html with th whole page setup ir runs all perfectly but is it because is from my files or the whole thing will run nice and goood once is being uploaded
btw i used ecercise file showed in this page
i jsut add new test gallerias
please answer me
thansk by readingYeah the answer is goood but my main doubt was like
if i add sfw file to other web projectfxp file i just have to add the result of the fxp export files so that last deploy to web i have to upload the last deploy to web to server right ?
other thing do i have to reae the file : do i have to rename the file main.html ? -
Problem with music in swf file when loading site to server
Hello,
I am a newbie to Flash and have an swf file I created for a
website,
http://www.kanzamancleveland.com.
I have a button there that turns the music on/off when the site
loads. I also put some music into the swf file, but instead of
putting it directly in the swf file, I am calling it from the
actionscript code in the swf file. I want it to stream when the
site loads and start loading/playing after the site loads. The code
is embedded in the on/off button. Now this code works when the swf
file is on my local hard-drive, but when I put it on the server
with the rest of the website, it doesn't work. Any ideas?
Here is the code:
import fl.motion.Keyframe;
import flash.display.MovieClip;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.net.URLRequest;
import flash.events.Event;
import flash.events.MouseEvent;
var _sound:Sound;
var _channel:SoundChannel;
var _playing:Boolean = false;
var _position:int;
var request:URLRequest = new URLRequest("lowsaaloony.mp3");
var buffer:SoundLoaderContext = new SoundLoaderContext(5000);
_sound = new Sound( );
_sound.load(request, buffer);
_channel = _sound.play( );
_playing = true;
offbtn.addEventListener(MouseEvent.MOUSE_UP, onPlayPause);
function onPlayPause(event:MouseEvent):void {
if (_playing) {
_position = _channel.position;
_channel.stop( );
} else {
_channel = _sound.play(_position);
_playing = !_playing;
gotoAndPlay(2);
stop();
I put the code together going from various Flash help
websites, and it works when everything is on my local hd, but again
as I mentioned before, when I put it up on the server, the music
doesn't play. I contacted the hosting company and they said that
they do allow streaming music on a website using Flash. Any help on
what I am doing wrong, or what else I need to do would be highly
appreciated. Thank you.
JayHi. It looks like your code is not finding the mp3. At least,
I can reproduce your error code by removing the mp3 from the
directory, or renaming it.
Btw, if you test with FF instead of IE, you'd see the error:
Error #2044: Unhandled IOErrorEvent:. text=Error #2032:
Stream Error.
at KZFlash_fla::Sound_2/KZFlash_fla::frame1()
Hope that helps. -
Wrong embedded colour profile causes huge jpg files when published to .Mac
D'oh! i posted the following on the iDisk discussion my mistake. Here it is all again for iWebbites:
I've spent most of the day trying to optimise my new iWeb site on .Mac but the published jpg files are far too big.
Despite sizing to 800x600 px and jpegging at about 5 or 6 in Photoshop which resulted in a file size of about 100kb on my local disk, when uploaded to .Mac via iWeb the they have turned into 800 kb files.
Lots of trouble-shooting, including ensuring that they weren't converted to png, that they have no borders, reflections or drop-shadows yet they still got bloated on the upload. Especially the photos in the photo-gallery page.
I've isolated the problem but don't know what to do next:
Turns out, iWeb ignores the sRGB embedded colour profile and replaces it with the monitor profile of the originating computer.
I discovered this after I opened the file in Photoshop directly via iDisk in Finder. Converting or assigning the file to sRGB and saving it back down to iDisk immediately restored it to its intended file size of 100kb and this time with the correct sRGB colour profile.
Going now to the domain.sites on my local disk and opening the package shows all the photos doubled up. A 360 x 264 .jpeg file with the monitor profile embedded and bloated out to 800kb plus the original 800x600 image with sRGB and .jpg as the file type but still only 100kb
So what the heck is happening in iWeb to do this and to use the wrong file type associations with the wrong file when uploaded?
There is very little on the forum about colour (color) profiles and no mention of the bloat in file size, just a reference to colour and tone issues with the wrong profile so I'm wondering if its related to the 1.1.2 update. (I haven't really tried using iWeb until the last week or so).
Fixing the problem by post processing the photos on my site every time I publish would be impossible with the amount of photos I have and my intention of updating the web galleries regularly.
As you can find out if you go to a photo page on my site:
< <a class="jive-link-external-small" href="http://">http://web.mac.com/adrian_malloch/iWeb/AdrianMallochPhotography/ Kabaddi.html > some pages take horrendously long to load. Check out some of the other Subculture pages. I haven't tested them all but Safari Activity viewer shows that most of the slow speed is related to opening jpeg files.
Any help and informed suggestions would be hugely appreciated.This is doing my head in.
My last two comments "posted" half way through writing, before I had a chance to edit completely.
Here's how it should have read :
Using sRGB as a monitor profile, in itself, doesn't make a lot of sense.
A monitor profile is custom made specifically for the monitor to compensate for its display characteristics.
A "good enough" monitor profile is to use the software calibration built into the Displays preferences. Go to System Preferences/Displays/Color/Calibrate and follow the prompts. Hint: squint as you try to judge the colour and tone differences. The idea is to make the detail so fuzzy you don't notice it.
It's not very accurate, especially with LCD screens, but it's better than nothing and certainly better than using a universal colour space like sRGB, etc.
The accurate option is to get hold of a hardware calibrator like the Spyder, or Gretag-McBeth iOne Display (which I use). It costs a bit but is vital for accurate repeatable colour.
The whole point is that when the profile is made up and is set as the default profile, then you will get a WYSIWYG screen.
So, the same images will look the same on different monitors providing they each have accurate monitor profiles made specifically for them.
If you use sRGB as your monitor profile then you cannot expect the image to look the same on any one else's machine, whether they use sRGB, a monitor profile or any other profile. Worse still, if you change an image to "look right" on your screen, chances are that the image will look horrible on another screen.
Hence, why I will only switch to sRGB monitor profile as a workaround for uploading in iWeb. Nothing else!! -
How to unload the external .swf file when move on to other section?
Hi,
The following code provided by Mr. kglad works great in loading an external .swf file onto stage. Now, when I click on Contact (Button), the external .swf file to be removed completely. How to code on contact (Button) to work it out.
Gallery.addEventListener(MouseEvent.CLICK, GalleryClick);
function GalleryClick(e:Event):void{
if(currentClip != Gallery_mc){
currentClip.visible = false;
Gallery_mc.visible =true;
currentClip =Gallery_mc;}
var loader:Loader=new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, ClipLoaded);
loader.load(new URLRequest("Gallery.swf"));
function ClipLoaded(e:Event):void{
Gallery_mc.addChild(loader);
loader.x=0;
loader.y=120;
loader.width=1000;
loader.height=700
I tried the following code for Contact_btn to unload the Gallery.swf file which throws an error: 1120: Access of undefined property loader.
Contact.addEventListener(MouseEvent.CLICK, ContactClick);
function ContactClick(e:Event):void{
if(currentClip != Cotnact_mc){
currentClip.visible = false;
Cotnact_mc.visible =true;
currentClip = Cotnact_mc;
Gallery_mc.removeChild(loader);}}like so:
Gallery.addEventListener(MouseEvent.CLICK, GalleryClick);
function GalleryClick(e:Event):void{
if(currentClip != Gallery_mc){
currentClip.visible = false;
Gallery_mc.visible =true;
currentClip =Gallery_mc;}
var loader:Loader=new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, ClipLoaded);
loader.load(new URLRequest("Gallery.swf"));
function ClipLoaded(e:Event):void{
loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, ClipLoaded);
Gallery_mc.addChild(loader);
loader.x=0;
loader.y=120;
loader.width=1000;
loader.height=700
I tried the following code for Contact_btn to unload the Gallery.swf file which throws an error: 1120: Access of undefined property loader.
Contact.addEventListener(MouseEvent.CLICK, ContactClick);
function ContactClick(e:Event):void{
if(currentClip != Cotnact_mc){
currentClip.visible = false;
Cotnact_mc.visible =true;
currentClip = Cotnact_mc;
if(loader){
if(loader.stage){
gallery_mc.removeChild(loader);
loader.unloadAndStop(); // for fp 10+
loader=null; // if loader no longer needed -
Iweb won't play my audio files when published
Can someone please help? I spent hours creating a website for music i produce. It works all fine and dandy on the preview pages, but when published the audio files and video files don't play. All that comes up is the picture and a small quick time player logo underneath. I have tried several different remedies but nothing seems to be working. Is this just difficulties with the new me.com facilities or what? Any help would be gratefully recieved.
Thanks very much,
a very frustrated mac user.I gave up on your page because the file size is absurd.
Your source files are AIFF format (raw CD quality audio) that measures 10 MB's per minute. I don't have the time to wait for 6 of these files to load in your single page:
http://web.mac.com/thekoles/the_koles/Media/trouble%20and%20strife%20150808%202. aif is 47 MB's.
Compress your files in iTunes to reduce the file size. -
Exporting Files when publishing
I'm trying to publish a project that consist of two menus.
One on slide one, and one on slide two. In the menus, there are
'click boxes' that I have pointed to files. (pdf, htm, etc..) When
I go to publish, it says the files may require output or something.
The issue I'm having is when I publish this and place it on cd, the
paths to all the files is off. The reason is that it's looking to
the same directory structure that I have on my system I'm creating
this on.
Menubuilder allows these files to be output with the
published item and it works ok. I would use menu builder, but it
doesn't have the roll over image capability. Therefore, I'm
wodering if there is a way to do this with a standard captivate
project. (export files) Thoughts? Any help is greatly appreciated!
:)MenuBuilder does not support roll-over images, as far as I
know.
I tried an alternate method-
Your projext EXE file, along with the files you are not able
to publish to a CD can be added to an ISO image, and then burned to
a CD. I tried out AVS Disc Creator,
and was able to make an ISO image of the files I wanted to
put onto a CD.
It's free...
http://www.avsmedia.com/DiscCreator/download.aspx
I haven't tried adding a autorun to the iso yet, but I am
sure that it would work as well. -
IWeb quits at half the preparation of the files when publishing the whole site
SOS ! After having saved my site on a local folder, I can't publish anymore my whole site through iWeb to FTP. iWeb quits when arriving at half the preparation of the files for publication. At one moment I had the message "Insufficient memory" (?!?). My site www.yesicannes.com is now big enough after one year of reports published with many pictures, but before I published my site on a local folder, I had no problem publishing frequent updates. But as I published on a local folder, I have to publish again the whole site and iWeb stops all the time before the publication. Any help please ?
[email protected]I was referring to the group of links on the first page and other pages:
but now realize that's not the part of your site you're referring to.
I'm not sure how you have your magazine site organized. Based on just what i've seen on the first page of the magazine page you could put all of the December pages in it's separate site and link to the site as you link to the pages only they are in a separate sitel
To split the sites, say by month, make a copy of your domain file and name it December.sites2. Open that domain file and delete all of the pages from it except those associated with December. Then make another copy of the full domain file and delete all files except those for November. That should reduce the size of each domain file down to a more reasonable size.
You could do this all locally, i.e. publishing to a folder on your hard drive, while leaving your online site untouched until you've got it worked out. However you will have to publish them to your server so that you can get the hyperlinks between sites established. You can do this by giving the sites names, i.e. December, etc. and non with the same name as your current site. Once you have the new site(s) up and running to your satisfaction change the current site so that the magazine files are not in it's domain file and the link to the magazine
points to the new magazine site. You'll see what I mean and can refine the concept to fit what you need. I have a family site that has nearly 80 pages, each of which is a separate site. So when I finish with a page (nearly all are never edited once they are published) I can put that domain file aside (but backed up) and not have to deal with it.
You can lay it out graphically on paper to get an idea how you will want to separate and group the pages. -
Captivate 3 - Getting playback skin and presentation on same file when publishing
When I publish I am getting two different files - one for the skin and one for the preso. The skin files shows the skin w/o preso and the preso file plays fine but w/o the playback skin. How do I publish in order to get both on one playable file?
Thanks for your wisdom
JCHi there
In addition to what Lilybiri offered, try clicking Project > Skin > Borders tab and DE-selecting the "Show Borders" check box.
Cheers... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks -
Where do I place Edge files when publishing Muse to BC?
The only thing I've been able to find on this is from older versions of Edge and Muse.
What I've read suggests that we have to put all the edge.html and edge.js files at the root level with the other html pages. That leaves the Edge Includes in their own separate folder.
I HAVE NOT BEEN ABLE TO GET THIS TO WORK.
I may be able to double-click the edge.HTML file to play in a browser, but when I try to play it after publishing from Muse – no luck.
I also wonder what happens when I want to put Edge animations on multiple pages within a Muse website. It seems with the root level would become crowded with so many Edge files. And how do all those “Edge includes” folders get renamed?
I would love to see tighter integration between Edge and Muse. But for now, I would be very happy just to be able to play my Edge animations in published Muse sites. As much as I'd like to use it, I can't use Edge if I can't get the animations to play in Muse.
Thanks for any help...Hello,
You probably did not find this article at the right time but there is one KB article explaining how to insert the Edge content into a Muse website.
Basically what you have to do is, after you publish the Edge project, to take the exported folder, or just the files, (but I'm totally into taking taking the whole folder) and upload them to your FTP where the Muse site is published. After that just use the "Object > Insert HTML..." option from Muse and paste the <iframe> code from the KB and customize the path to the folder where the files are located and the width & height for the iframe.
KB can be accessed here: http://www.adobekb.com/inserting_edge_content.html
An example can be found here.
- Edge project uploaded to FTP.
- Content of the project folder.
- HTML code
I hope this will answer your question.
Cheers,
Cristian -
Flash site - swf file too large
Hello,
I have created a website using Flash CS5 using AS2. The site was completely custom designed using Photoshop and in then imported into Flash. The site has all of the pages in the main timeline on different keyframes, so say frame 2 is home, and frame 3 is services, etc. This is a site for my design portfolio so I have probably 5 galleries that I have made, but they are very simple, one frame will have the first picture, the next frame will have the second picture and so on. I have gotten my site exactly how I want it and works how I want it... but in the end the .swf file when published, is over 9MB which I know is wayyyyyy too large for a flash site that works fast for everyone.
So how can I make this file size smaller. I am fairly new to this, although I had no problem getting my buttons to navigate with actionscript no problem, but my actionscript knowledge is very limited beyond that. I'm not sure where to go with this site to make the size smaller, so any help would be greatly appreciated.
I can send someone the fla file to look at if needed.
ThanksThanks for the reply.
Maybe you can help me a little more.
I looked up some tutorials having to do with the AS2 xml galleries, and I found that almost all of them were for galleries with fancy scrolling options and slider bars, etc.
My galleries are very very basic, thumbs are layed out on the left, click one and the image appears on the right. I'm not the best at using the actionscript and knowing what to do with all of it. So some of the tutorials made sense about getting files to load dynamically, but I'm not sure what code to keep in for my gallery, and what code to take out that I dont need for all the fancy effects.
my site is http://www.mrolfedesigns.com
as you can see, the galleries are pretty simple, I would like to keep them that way, and not have any complex scrolling or slider bars. Ive searched a lot into looking for some more simple tutorials, but am not finding any great ones that I can use. -
Problem when load more swf files work with xml files into my movie
hi ;
I have one flash file & more of swf files which work with xml files .
when I load one swf file into my flash file and remove it and load anther one on the same movieclip in my flash file it load the old swf file.
when i load one on movieclip and remove it and load anther swf on anther movieclip the file doesn`t work and stoped.
when test my flash file to load and remove swf files without xml file it work fine but when repleaced the swf files with other work with xml files the problem hapend.
thanks;YOu should trace the names of the files that are being targeted for loading to see if they agree with what you expect. If you want help with the coding you will need to show the code that is relevant to your problem (not all of it)
-
How to bundle a .FLA and multiple .SWF files in one .EXE?
Hi,
I have a .FLA file which uses loadMovieNum() to load various
.SWF files when each one is called by the user clicking on a
button. Each .SWF file also uses loadMovieNum() to call a second
.SWF file. When I publish the .FLA file as a .SWF file it all works
beautifully.
Now I need to package the entire project into a Windows
projector .EXE file for offline use on a computer without the Flash
Player. When I publish the main .FLA file as a .EXE file, the .SWF
files still load, although they blink before fully loading and
displaying steadily.
What I would really like to do is to bundle all the .SWF
files into the .EXE file so when I send the finished project to the
end user, they only have to deal with one file, rather than a
folder with the .EXE file and multiple .SWF files.
Is there a way to do this?
I am using Flash 8 Professional.
Thanks,
CamSince this isn't going to be web-based, why not include all
the external swf files into the same Flash file and then use
attachMovie?
This will allow you to create one .exe file that would
contain EVERYTHING. Since you aren't worried about loading speeds,
you don't have to load the movie clips, but can simply create one
large Flash file.
Maybe you are looking for
-
I've had an iPhone 5s (upgraded to 8.1.3) since mid-November and have been experiencing difficulties on voice calls ever since (I switched carriers as well). When calling specific contacts (family, friends etc.), the calls sound as though as I am on
-
Hi all, I'm having problems on calling a function in a workitem. The function i'm calling have: Export: RETURN_CODE LIKE SY-SUBRC Tables: EVENT_CONTAINER LIKE SWCONT with the column VALUE where is the error description. so i looked on
-
Viewer Crosstab Excel Export - Limit to Static Worksheet
I'd like to know if it's possible to limit the export of a crosstab worksheet to excel to just a static worksheet (eg. Crosstab_Static excel worksheet ). In advance, thanks for your assistance.
-
Downloaded Mountain Lion update but couldn't install it and now it's gone.
Hi. I bought a Macbook Pro today, asked for the redeem code to download Mountain Lion update and received it OK. After the update downloaded, it said there was an error and the update disappeared without being installed. I can't download it again bec
-
Hi, i just downloaded some files from a friend and he sent me a link to download the fonts. I did so and 98% of the fonts work, but there are two fonts i am struggling with. When i open the file i get the font missing warning and it asks me to resolv