ActionScript 2.0 :: Cover A 800 X 600 Scene?
Apr 5, 2006can you do this in actionscript i need it to cover a 800 x 600 scene and if it could have a rollover of light grey very faint
View 2 Repliescan you do this in actionscript i need it to cover a 800 x 600 scene and if it could have a rollover of light grey very faint
View 2 Repliesive made a button in the scene 1 which i have managed to navigate to scene 2 but when i click the button it goes to scene 2 but displays everthing that is in scene 1 in scene 2, how can sort this out so upon the button click in scene 1 it goes to scene 2 and only display content in scene2.
[Code]...
Check out this code:
[CODE]...
everything here is fine. It opens finely. But... i want to pass parameters where if i click a button in html page My.swf should open a particular scene called 'Scene 2' rather than scene 1. i tried
[CODE]...
I have this world map (.swf file) that I want on my home page(black background). It's up and working fine, but it flashes a white blank map for about 2 seconds when it first loads and then it goes away. It looks very ugly on a black background and gives off a sense of "cheapness". Anyway, it has got to go. I purchased the world map and they don't offer access to the original .fla file. So basically I want to know how to cover up the first few seconds of the video with black and then have the black cover disappear and let the flash file do its thing.
View 1 RepliesSomething that is similar to the Cover Flow in iTunes.
I can use Adobe Flash, Flex, or pure html/javascript.
HOWEVER, I need a pointed to production ready code. I've looked at plenty of examples in both Flex and HTML that aren't ready for prime time. No demo code needed.
Here's my requirements for production ready:
1) Memory leaks are under control.
2) Works like a river with larger data sets, paging in sub-sets in some set number. The component/code needs to be able to handle 100+ items to flow through, preferable up to 500.
i know this can be done by changing wmode to "transparent or opaque". But is there any way to show the div over the flash file using wmode "gpu" ..
View 1 RepliesI want to show a full 24 hours along the datetimeaxis wherever the values fed into it happen to fall. I thought that setting the minimum and maximum of a datetime axis on the chart would have that effect.
so I have private function loadDayComplete():void{ //called when data is reloaded. also includes reassigning the dataprovider of the chart.
[Code]...
When I load up the function though it doesn't plot any points when the min and max are set. If I take out the minimum and maximum they show up fine! I double checked in debug mode that the minChartDate and maxChartDate are what they should be.. but maybe I'm misunderstanding how minimum and maximum are supposed to function... I also tried widening the min/max to include several days and still no luck. I also tried assigning the min/max when the chart data changes like so:
I have created a Carousel with CoverFlow where images are imported from Flickr. Now I would like to import images from an XML file so I replaced the relevant code with code from a past project that consisted of designing a Papervision 3D Carousel. The problem is that my CoverFlow Carousel consisted of a Cover with Bitmap images while my Papervision 3D Carousel consists of a plane that loads/saves images through BitmapFileMaterial. Flash does not seem to accept that I insert a BitmapFileMaterial into a cover.
It gives me error 1067 (translated from German to): Implicit change of a value of type org.papervision3d.materials:BitmapFileMaterial into an unrelated type flash.displayisplayObject. In my code below I commented next to the function that causes the problem.
PHP Code:
package {
import flash.display.*;
import flash.events.*;
import flash.display.Loader;
[Code].....
I'm having a bit of a problem with - what I assume to be - a masking issue. Apparently I can't post images. This may hinder my ability to explain the problem. Oh well, I'll try to make do with just words.
I have four "ground" sprites, each one shorter than the last, that are layered on top of each other. References to them are stored in an array groundLayers[], for easy reference. When a new [not ground] sprite is created - it's given a number which tells it which layers it is between. Herein lies the problem: how do I conceal the new sprites properly?
Without doing anything, they wind up all in front, not layered. My initial solution was to just change their indexes with setChildIndex(), but this proved to be disastrous when I tried to add mouseEvents to the objects. I tried to set the objects' masks to these objects, but that didn't seem to work. I also created separate layers which just contained the "sky" parts of each ground layer and setting the object masks to shoe sky layers, but that didn't work, either.
I am playing a video and created a button which displays video area in fullscreen but video doesn't cover whole screen area, there are blanks left and right of the video. I searched a bit and every flash player i found with full screen option in fact resizes the video the same way, it just doesn't cover whole area. Why is that? Can video in full screen mode be resized to cover whole screen area without those blanks at sides?
View 6 RepliesI'm making a flash game for practice and I have my stage set up so there are 9 boxes. When the game is started, one of the boxes is randomized as the one with the start underneath, if you pick the box with the star underneath, you win.
The randomizing code is
var star = 1 + Math.Round(Math.Random()*8.0)//generate a number between 1 and 9
What i dont know is how to attach this code so that it assigns the star to one of my 9 boxes made as buttons. How can I hide the star underneath the box as a cover.
I want to make a MC called bgFade cover a percentage of the flash movie. So the MC starts at the bottom and covers 80% of the vertical space of the Flash movie. So theres 20% at the top that isn't covered. At the moment i have:
ActionScript Code:
bgFade._y = Stage.height;
bgFade._x = 0;
bgFade._width = Stage.width;
...Which places the MC at the botton of the movie, and makes it fill all the horizontal space. So what can i add to that to make it fill 80% vertically?
I've got 4 button images that drop in when the movie starts, and when you click on an image it loads in an XML image flow. Problem is, when I click the "go back" button, it goes to frame 2 to start over, but the XML gallery/image-flow won't leave the stage. Link is below, code is attached.I've been pulling my hair out for a few days now
View 0 RepliesOk, so i can get my box to move up, but now i want the box to expand its sides to cover the whole screen.
View 12 RepliesOf course, when the mouse rolls over the graphic, the button beneath it is not clickable.Without going into all the reasons why I can't incorporate the graphic into the button itself... is there a way in AS3 to programmatically make that graphic virtually "transparent" - so that it doesn't interfere with the button's rollover and hit states?
View 2 RepliesI have a white stage and my background is non-solid/non-uniform. My flash project will be my whole website, therefore when a browser window is larger than my stage, the stage color (white) shows in the background. Its basically a white border on the left and right. I wish I could continue my background image to cover the whole browser window. What I want to do is: if needed (if the browser window is larger than my stage) continue my background on both sides by taking a copy of my background image, flipping it horizontally, and placing it on both sides of my background. If you can imagine it, this will give a more uniform continuation of the background. I'm guessing actionscript would be the best bet?
View 2 RepliesI'm trying to embed this player to a web page:
[URL]
It's working fine, but I would like to remove the album cover from the player so it looks like on this page:
[URL] (The gray player in the right column, not the player in the center of the page)
I looked at the documentation and also the source of this page
I have downloaded free version of itunesViewer and working on it. I found it was extensively using onEnterFrame which is taking lots of CPU, slowing the system.there's function 'controlTheObject' which contains onEnterFrame code. eliminate the use of onEnterFrame. Can there be other alternatives??
View 0 RepliesIs there a way to extend internal namespace to cover subpackages?The current solution is defining custom public namespace and import it in 'root' and 'children' packages, but that namespace also could be used outside of 'root' package.
View 2 RepliesI have a full screen webpage with an elastic bg that is created mostly through AS, XML, and external .swf's. The main menu links to pages (other external .swf's with dynamically loaded content) that look sort of like popups over the graphic content of the main background (img2). There are two problems, 1) there are other buttons on the main page that the user can click when viewing a page and 2) the popups come down directly on the content and make the whole site look rather flat.
I am trying to create a background for each of the pages that has the same elastic qualities as the main page (so that no matter what it will cover the user's entire screen) and will disable all of the buttons beneath it. I tried adding a rectangle beneath the pages other layers, however any script I write for that mc (such as the onResize _mc.width and _mc.height or ._x and ._y) is completely ignored in the main timeline and the rectangle messes with the popup page position -- img3. Also the buttons beneath the rectangle are still active.
I have a Youtube video on my homepage, and now I need a modal to display on certain events.For some reason, even when adding <param name="wmode" value="transparent"> to the Flash object, it still covers the HTML elements (with higher z-index too).I've got it on JSfiddle.I figured maybe an iframe could solve this, but that would require me to make a new page just to put the video on.
View 2 RepliesI have a list inside a VDividedBox. When the box is resized so the vertical scrollbar shows on the list, it covers some of the itemrenderers. How do I get the list to resize horizontally so that the scrollbar does not cover the renderers?
View 1 RepliesI have a movieclip on its own layer, with the intention of using it as a background to all the other layers. It is simply a black square with the alpha at 60%. There must be a relatively simple way of telling this movieclip to either tile or stretch to cover the whole of any page it loads into.
View 1 RepliesI need to have a shape (black rectangle) that will cover the stage. It should resize with the stage when needed. I'm trying it with the following code, but when it's resizing, there is a clipping effect that is visible and it is not fluid. How can I prevent this?
Code:
Select all
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.addEventListener(Event.RESIZE, resizeHandler);
var blinder:Shape = new Shape();
[Code] ......
I'm looking to slideshow or flash my magazine front and back cover and some interior pages on my website. So they will show the different pages back and forth.
View 1 RepliesI had problems covering videos on Youtube itself but solved that with a design change (don't need to cover them any more).
So I have a script the user can run and it calls a javascript file to do other stuff on the current webpage. One thing it does is bring up a lightbox that covers the page. Of course it won't cover embedded Youtube videos and so I need to do a few changes. I did the necessary changes and it didn't work. I kept trying and trying and eventually made a page with just an embedded video and a .jpg (my script won't run if there are no images).
I looked to see what the Pinterest script added to the embedded video portion and while it was almost identical they did have an autoplay=0 in there so I added it just so I could see for myself that it is exactly the same. If I run the Pinterest script and close it, then run mine, mine works fine. If I run mine, then the Pinterest script, then mine again, mine works. So I believe this means I'm not adding anything that tells the page "Go ahead and put the video on top anyway."
My portion of the script that adds the wmode:
var players = document.getElementsByTagName('embed');
var len = players.length;
for(var i=0;i<len;i++){
[Code]....
I have file that doesn't work at all it doesn't scroll when click left or right .. here is the file. [URL]
View 0 RepliesI am using TweenMax to animate a PNG with some transparency. With TweenMax, I add a tint to the animation.
When the tint is applied, it obviously only tints the non-transparent part of the bitmap.
Is there any way to force the tint to cover the entire image, including the transparency?
I'm building a website that has a main swf with buttons that open external swfs which completely cover the main swf. The external swf has a close button to return to the main swf. My problem is when the external swf is open the buttons hiding underneath on the main swf are still active. I want to add code to the button on the main swf to disable itself while opening the external swf. BUT, I also want to reactivate them when I close the external swf. Is there code I can place on the close button of the external swf that will communicate to the main swf to reactivate its buttons? It seems so simple but this is the trickiest part for me.
View 2 Repliesso I have some buttons that, as of right now, simply trigger the scene to move on while at the same time killing some particle effect animations I have spawning when the animation is idle. What I now need to do is make these events move on to a specific scene AFTER the rest of the scene's animation has played out (about 400 more frames) I'm figuring that the gotoAndPlay command has to be tied to some sort of timer variable that I would have to figure out based on my fps. Or maybe there is a way to set up a timer directly tied to a certain amount of frames allowed to go by. I'm pretty noob at actionscript, so keep that in mind. Here is the script at the point where the animation pauses to await user input on the buttons:
[Code]....