ActionScript 1/2 :: Make The Swf Appear In The Center Of The Webpage?
Feb 8, 2011Other than using HTML, how to make the swf appear in the center of the webpage?
View 2 RepliesOther than using HTML, how to make the swf appear in the center of the webpage?
View 2 RepliesI have a question, i have created my website and I publish the settings to swf-file and html-file and when I open the html file my website is to the left. But I want my website to be in center of the screen, can anyone tell my how to center the flash file?
View 3 RepliesHow can I make my Web Page stay In the center of my browser? When I bring it up in my browser it is all the way to the left is there a way to do this?
View 2 RepliesI'm a descent web designer .i know alot about flash but.center flash in a web page?like this one for instance.[ulr]...
View 14 RepliesHow do you make a whole flash movie a url link once embedded into the webpage?
View 3 RepliesOn the creative pro website [URL].. they have a block at the top with images that change. It is titled 'today on creative pro' Does anyone know how they created it? Was it with Flash?
View 3 RepliesI have a webpage that I have a video linked to play when a user clicks on it - simple enough. With flv (v9 and below) videos, I have no issues serving it up to the user and them viewing it - with a f4v file this is a different animal, nothing happens, the web page player sits there spinning like it is going to do something and never does, like it cannot read or understand the video file.
how to make f4v videos play in a web page? My flv's are working fine, but cannot seem to get the better compressed f4v's to work right. I do not have DW CS4 or I would have tried to see how the code worked there. I created these videos in Premier Pro and exported via the Adobe Encoder in CS4. The video is beautiful for the same size and quality compared to the hazy flv's, so I really want to use the f4v's, I just cannot seem to get it to work.
I want to implement something similar to MAC OS X Time Machine in terms of having time-line on the page side and then clicking on a specific day will pull a page from the server.
I have good experience with Ruby on Rails. I'm less experienced with GUI design and was wondering what in your opinion is the optimum way to do something like that. Couple of ideas came to mind:
- Use Adobe Flex (or maybe Silverlight?)
- Use JQuery (or similar JavaScript library)
- Use something like Objective JavaScript
Is there a way to embed a .swf file in a webpage and provide a way to make it fullscreen? I'm creating these files with Adobe Captivate, which doesn't seem to provide a way to publish in other usable formats (.avi files are too big, and no .flv is available, to which there seem to have some players around that allow fullscreen).
If there's a way to convert .swf to some other "embedable" format,
I've done a search and found out about LocalConnections but I don't seem to be able to apply them to my issue.
I have two separate SWF files that appear on the same web page. Both are simple animations and all I want is when the first has finished playing for the second to start, and them when that has completed restart the first one again (and so on...).
I'm also guessing that in order for this to work I'll need some code in the first SWF to detect that the second has finished loading otherwise nothing will happen when the first SWF reaches the end.
I am trying to make a swf talk to another swf on a web page, i.e. to separate flash pieces would be able to pass information back and forth to each other on a page. I have some thoughts on how this might work, but I am curious if anyone has done this before, and or what you would think the best way off achieving this would be. Haven't found much about this topic on the web...
my initial thought would be to have flash update something like an xml file via a webservice, then have the other piece constantly look for a change in information, but that seems forced.
i want to make my home with sliding windows like this website.[URL]
View 2 RepliesI really wish Flash and Photoshop would make possible a grid system like 3D apps so the center of any page would be: X:0 and Y: 0, then when placing graphics you could just type in X:0 and Y:0 and the graphic would be placed in the center of the stage.
View 1 RepliesI am trying to make a simple button that opens a webpage.This error comes up and I don't know where I'm going wrong...
1061: Call to a possibly undefined method addEventListener through a reference with static type Class.
(it says it's line 6 which I have highlighted in red)
<<my actionscript code is below>>
import flash.events.MouseEvent;var getPage:URLRequest = new URLRequest("http://www.google.com");
//---B Button---\
[code]....
I'm trying to make a rotating menu for a sushi webpage, and I've almost got the coding for it solid. But I've run into a few bumps in the road. If I click on the arrows fast the rotation gets really screwed up, if I change from left to right, or right to left right away the animation screws up.And also the rotation messes up on the left arrows rotation (clockwise). Anyway, here is the code, I'm also uploading the .fla with just the menu.(This goes on the first frame before the animation)
Code:
var resting = TRUE;
var Rotation_Sushi = 1;
///////// Right Arrow[code].....
When working in flash I can control size of my web like so (and other alignments):some_background.width = stage.stageWidth;some_background.height = stage.stageHeight;And with resize and fullscreen functions web is always going to populate size of a flash window.And lets say I make 1280x1024 web, when I publish it, it is going to be that size in a browser window.But how do I make it fir browser windows completely whatever the size of it?
View 7 Repliesup/down/right/left) except for zooming around the center of thestage. Let me explain, the user can drag the map in any directionany number of times but whenever they zoom in/out whichever pointof the map is in the center of the viewable area should always stayin the center.So for example I have several zones in my map, like Zone 1,Zone 2, Zone 3, etc. Let's say the user wanted to examine Zone 1more closely so they move the map in such a way that Zone1 nowappears in the center of the viewable area. I want when they zoomin/out Zone 1 to always remain in the center.
So I have the Map as a movie clip symbol and as a buttonsymbol. In Scene 1 of my Flash document I've inserted the Map movieclip and inside of the movie clip I have the Map button. In Frame 1of the layer where my map is I have the code for moving and zoomingin/out. Here is what it looks like below.
In Flex, how to put some component ( like canvas ) appear at the center of the screen. ( even if there is scroll, it should be displayed at the center of the current view).
View 1 RepliesI have finally finished my website. It works great, except the website is placed far on the left side of the screen. I would like my website to be placed in death center, kind of floating in the center and stay the same size regardless of how viewer adjusts the window size.I am trying to change alignment in PUBLISH SETTINGS (html alignment) but there is no "center" option. Only right, left, top, bottom. Here is the link to my posted .html: [URL]
View 3 RepliesHow do a make a center a mc automatically on the stage with aS. The script should detect what the stage size is and move the mc to the middle.
Im making smartclip-preloader and want to be as productive as possible later on.
I know how to make a webpage pop up out of flash that links to a certain site or whatever...
But can you put the HTML inside flash itself, so all the source is contained in the flash, and when you open the webpage, it will be generated as stored in flash?
I need to know (fairly soon), how to make the .swf file i have linked into a page open in flash player, not an explorer window.
View 2 RepliesHow can I make my flash Webpage displayed same size on any screen resolution of my computer? Whether it is 1024 X 768 or 1280 X 960 screen resolution, the size of Webpage (Flash Webpage) should always be same so that user don't need to use horizantal scroll bar to view all the content.
And secondly, how can I scroll my webpage vertical on moving with my mouse like in the following link: The below link also shows that it's webpage size is always same on any screen resolution.[url]...
What is the simplest way to make QWebView recognize and properly load Flash on the web page?
View 1 RepliesI've been building a website for a friend: WEMI. The thing is I'm using a script I bought from Activeden.net which is awesome and works great for displaying external webpage's within you flash site. However, there are a few issues. If you visit the link above (WEMI) and navigate to either "Till salu" or "Frmedlade hem" you'll notice that the popup is not positioned in the middle. Also, the popup only goes away if you interact with it, such as scrolling down or something like that. You can't just click on another button, say "Kontakta oss" and continue navigate. I just won't go away.
how to deal with my issues: "You can call setInvisible(); through the popup reference (in the example called p) and to center it you can add a resize event listener to the stage and in the callback function set the x and y of the popup" Since my knowledge in AS3 i limited
I draw a shape,like follows:
var shape1:Shape;
shape1=draw();
addChild(shape1);
shape1.rotation=50;
[Code]....
Then I want to rotate the shape at it's center point(200,202) by using shape1.rotation=50,but I find the shape don't rotate at the the center of it's shape. How to realize the function which make shape rotate at its center point?
ahoy there me hearties
Ive got a bit of a dilemma...
new Tween(clip,"_x",Bounce.easeInOut,clip._x,Stage.wid th,6,false);
new Tween(clip,"_x",Bounce.easeInOut,clip._x,Stage.hei ght,7,false);
what would be the correct way to write this to make clip go to the center of the stage and stop? At the moment it takes off to the left, never to be seen again..
how to make bgImage align in the center on resize, instead of top left?
Code:
Stage.scaleMode = "noScale";
_global.imgConstantWidth = bgImage._width;
_global.imgConstantHeight = bgImage._height;
[Code].....
I'm trying to make a movieclip push out from the center of the stage, but I'm having a problem with the math.I made an function, but it pushes out in a diamond shape.
Code:
function newCords(newX:Number, newY:Number, distance){
var centerX = Stage.width/2;
var centerY = Stage.height/2;[code].....
I need to make a MovieClip rotate around it's center point to the left or right depending on mouse drag. I got some basic semblance of what i want going, but it's pretty hackish. Normally i calculate the angle and such but i only really need to use the distance the mouse travels and apply it to the movieclip and for flavor add some nice easing when you let go.
public function Main()
{
var wereld:MainScreen = new MainScreen();
addChild( wereld );
[Code]....