I wanted to know what is the best way of centering an AIR application onto the screen. i am trying to add a splash screen and thats just appearing on the top left corner instead of center I have read about using some function known as CAPABILITIES which gets u the screen resolution and then subtracting the application width and height...
I've read all threads here already about this subject. For most AdobeAir projects for Android, no matter what size, it could take up to 20 sec to load the app, and while it loads, all you see is a black screen. As there's no support for a Default.png like there is for iPhone, we have to use a preloader.
I've only found one for Flex, which is no good to me as I'm using Flash Pro 5.5 (IDE). I've tried doing some simple preload-a-swf-preloader but it just loads it to 100% before showing anything anyway. Anyone here that can share a script of a simple preloader for Flash CS5.5? I know that to reduce the loading time and show a splash screen on android we need to make a very small swf that will contain the loading screen image, and that same swf will also preload the maingame.swf (but can that be done? Appstore don't like code in more than one swf) into it. My tries have failed.
I have created a shooting game and I am struggling to create a splash screen at the beginning informing the user of the controls with a button to start the game, which removes the splash screen. I am trying to add the splash screen in the main timeline using addChild event. I can get the splash screen to appear on the game and remove it when the playgame button is pressed, but this prevents all the other event listeners so I am not able to fire or move the ship.
In the splash screen I have the code :
Play_btn.addEventListener(MouseEvent.CLICK,playgame) function playgame(e:Event):void{Play_btn.removeEventListener(MouseEvent.CLICK,playgame) parent.removeChild(this); }
Is it possible to have a library of PDF documents (files in a folder), and create a splash screen in Flash, even if its a AirApplication, that can search the documents for specific words? I am trying to create a PDF search tool that I can be delivered via CD.
I can't get the content to center correctly when the browser window is resized. Despite efforts of trying to make the design work within all screen resolutions, it still does not fit correctly on smaller ones. What I want is for the content to center itself completely - Right now it only centers from left to right. Here is the code.
Code: // Aligns everything to the top left side Stage.align = "TL"; // Disables the movie from scaling Stage.scaleMode = "noScale";
[code]....
The first thing I tried was simply adding all_mc._y = Stage.width/2; to the start values and the sizeListener, which worked until you clicked on the navigation and the all_mc movieclip is moved to a new X coordinate. It moves fine, but when you try to resize the browser, it jumps the movieclip back up to the top and moves back down again.
Does anyone of you participate in the Beta Phase of Flash CS5 or have a copy of the new Flash to take a screenshot of the awesome Flash "Viper" Splash Screen?As a huge Fan of Flash I would like to make it as my Wallpaper
I have not included a preloader yet, so it will be blank for a few moments before it loads.
My problem is, I can't get the content to center correctly when the browser window is resized. Despite efforts of trying to make the design work within all screen resolutions, it still does not fit correctly on smaller ones.
What I want is for the content to center itself completely - Right now it only centers from left to right. Here is the code.
Code: // Aligns everything to the top left side Stage.align = "TL"; // Disables the movie from scaling
[Code].....
all_mc is the movie clip that holds all of the website content. Pressing the buttons on the navigation makes the entire movieclip shift up and down.
The first thing I tried was simply adding all_mc._y = Stage.width/2; to the start values and the sizeListener, which worked until you clicked on the navigation and the all_mc movieclip is moved to a new X coordinate. It moves fine, but when you try to resize the browser, it jumps the movieclip back up to the top and moves back down again.
how to tell the movieclip to stay center after the x position changes.
I have a scalable flash for the most part the site works okay. The problem I am NOW having is I can't get my external .swf files to load in the center of the site based not on the flash stage height and width but the browser / screen resolution height and width... This is what I have so far and it is not working for me..
// detects width of end users browser var resX:int=flash.system.Capabilities.screenResolutionX; trace(resX);
I have two HTML pages, each with a .swf movie on them. The first page has the splash .swf intro movie on it. I want to add a preloader to splash.swf that loads main.swf which is on main.html which loads when you click ENTER. I don't know if this is possible or not. The reason I have 2 seperate .swf's on seperate pages is because I need a different background color for each page. If this can't be done then I would be interested in just loading the main.swf into the user's cache as soon as they open the first page so that it acts as a preloader. I uploaded it to [URL]. The .swf's might not load correctly on mac's for some reason, but should be fine on a PC (no clue why).
Im trying to create a simple splash page that plays a video using the FLVplayback component. The problem is that it wont redirect the browser tot he homepage at the end of the playback.I've set up my FLA by putting an instance of the FLVplayback component in the only frame on the stage. I put another keyfram on a separate layer for actions and included the following actions (instance name of the FLVplayback component is videoIntro)
i seem to be able to reference the component correctly because i can set the contentPath. What im doing in that actionscript is identical to what i have seen in some tutorials.
I currently have a splash page which uses a variety of tweens to make an animation of a character running. The splash page also has music playing in the background and a small skip button (located in the corner) which is given the instance name "reelButton". I want the splash page to link to a loading page (file name "loading_screen.swf") I have created which uses a black background and an animation of a skull rotating. When I press the skip button, it does navigate to the loading page but the character running from the splash page and the music is still playing. I know its because I need to use the unloadAndStop command to stop all the movie clips from the splash page. But even with this it still doesn't seem to work.
Below is the code: var contentLoader:Loader = new Loader();addChild(contentLoader); reelButton.addEventListener(MouseEvent.CLICK, reel); function reel(event:MouseEvent):void { loadURL("loading_screen.swf"); }function loadURL(url:String):void { contentLoader.unloadAndStop(); var request:URLRequest = new URLRequest(url); contentLoader.load(request);}
I just want to stop all the sounds in the splash page. I don't need to give the user the option to start them again. The thing is only 20 seconds long. I just want them to be able to turn off all sounds for their convenience. I found this piece of code: ActionScript Code: import flash.media.SoundMixer; SoundMixer.stopAll(); But how do I write the function/method?
I'm looking for a tutorial that will show me how to create a flash window that expands when you come to the web site and gives options of making flash splash smaller. I believe it has something with Dom and javascript.
I want to create a splash dots effect like htc wallpaper. So, the dots is shown one by one..randomly. And the transparency each dots are different. Example, I put amount of dot 100 dots. It's shown one by one until 100 dots and if animation finish, it will shown like this.
I needed to make a loop for a intro splash, and since I have only programmed in php before, I tried this (to my suprise it didn't give a syntax error):
Client wants the audio from splash page to fade out in bg when user clicks enter button and leaves page and enters next html page? How to do this? WIth AS? Javascript? Does this file need to be embeded on both html pages?
Check out the link below, as you can see my overlay is hidden behind the flash element. However, the blue bar with the 'Continue' button appears above everything. Does anyone know what CSS changes I need to make so the overlay will appear above everything below it? The background loads an iframe.
[URL]
I can't add wmode="transparent" to the embed tag, since I have no control over the page loaded in the iframe.
I'm not even sure what you call it. When you go to some of the major web sites and big flash movie with option to shorten it is displayed. I've search the web for this and maybe i not calling it right.
What is the name of this flash movie called when you come to site and big flash movie comes up and pushes everything down? It has a option to reduce size by clicking button.
I'm a beginner level student. My project is to create a Splash Intro and a 4 page Website (Home page and 4 internal pages). I have to use Flash (no HTML, Java, CSS, etc). We are using Flash CS3 with Action Script 3. The Splash Intro should play continuously. This part I have working like a charm. However, the project requires a Skip Intro button. I have made the Skip intro button and gave the "instance" a name. The next part is where I'm stuck. I want to be able to click on the Skip Intro button and go to the first page of my "Website." I have all of my pages on one timeline. No movie clips. This is very basic.
My Home page has some animation on it. My name comes in from the left and three buttons come in from the right. When the user clicks on the Skip Intro button, I want it to go to the Home page, play the brief animation and STOP. I don't want the Skip Intro button to just go to frame 40 (for example) and just stop. And, if it goes to frame (50) for example and stops the user will miss the animation (right?). Here is what I have but it doesn't work:
Ive just finished a flash web site that ive used a lot of XML for loading my images from thumbnails. Its works great.
Except it takes maybe 3-4 minutes to load. I think whats happening is its loading all the images in that XML file before it even shows the first thumbnail, so thats like 2MB its loading.
Is there a way to preload all of the xml files at the start on my Flash splash page?
My website splash page is around 780x480 and the rest of the flash site is all 800x500. I'm not quite sure how to work this, but I want to have the splash page play automatically then go to the main page of the website. Can someone help me out with this? And does it matter that they are different sizes?