ActionScript 2.0 :: Called Onto Screen With AttachMovie?
Jul 9, 2003i made a function that draws a circle can any one tell me how i could make it into a movieclip that could be called onto screen with attachMovie?
View 2 Repliesi made a function that draws a circle can any one tell me how i could make it into a movieclip that could be called onto screen with attachMovie?
View 2 Repliesi have this movieclip, which has 4 frames.on the second frame, i placed in this code
ActionScript Code:
_root.attachMovie("pulseshot", "pulseshot", this.getNextHighestDepth());
if (_root.char._xscale ==100){
[code]........
I'm trying to build a little tile editor for a game I'm about to make, but in setting up the tiles on the screen something goes wrong. Here's the code:
[Code]...
the trace just spits a whole bunch of 'undefined's at me. I double checked the variables once again just to be sure, and they're all right.
i attempted to add some code to call up another pop-up while my flash loads. since then my problem is this: both pages are called up correctly except that they come up full screen. this never happened before. i have specified the W and H variables in my flash script as 400 x 415, which worked fine before. the only thing i changed was adding the extra code at the start of my flash anim, and the pop up title.
View 7 RepliesI want to load an external swf called 'signs.swf' into an empty mc called 'signholder'.
var loadit2 = new Loader();
loadit2.load(new URLRequest("signs.swf"));
signholder.addChild(loadit2);
Everything works. Cool. But, I now want to target something within the signs.swf. How do I do it though? What is the path? Do I have to give the child of signholder an instance name? Everything I try fails.
If I wanted the root timeline of the external swf to gotoAndPlay(2) for example,...would i say...
signholder.loadit2.gotoAndPlay(2) ???
var wow:MovieClip = loadit2.content as MovieClip;
wow.gotoAndPlay(2) ????
I am having issues with startDrag(). I have a movie clip called circle. Inside circle, I have a movie clip called circleFill and another called circleOutline.onEnterFrame, this movieClip is duplicated 4 times.
When I use this:
private function onPressNow(event:MouseEvent):void
{
startDrag();
}
IT DRAGS ALL 4 MOVIECLIPS.
[Code]...
how can I make it drag my movieClip called circle? (meaning both circleFill and outlineFill)
i have a box called infoBox that contains a text field called caption. infoBox expands on mouse-over. When it does so, I do not want the text in caption to scale up - I want it to stay at 11 pt. So far my code to prevent this from happening is not working:How do I fix this?[URL]..
View 2 RepliesI have a wordpress based site that stores information about an image in a database field called "background" in a table called "wp_postmeta".The 'loader' gets an url such as "/thisImage/background.swf"The "background.swf" should somehow display "background.jpg" instead but since I've changed the field name in the database (from background to temp_background) it doesn't work.I pass variables to the "loader" swf and they are correct based on the new field name but it still isn't working.I need to know if there is anything in the .fla's (and therefore the .swfs) that is pointing to somewhere in the database hard-coded. Basically I need someone to look at them and tell me how they are working.
View 2 Repliesi'm trying to control a movie clip called "nosotrosmc" with a frame label inside called "historia" but does not work this is the code:
[Code]...
i have a movieclip on my stage called dude inside the moviclip is a frame with a movie clip called axeframe with yet another movie clip called axe. what i want to do is make a hittest in the axeframe a so that when the axe (only axe not the character) hits an enemy(named enemy) on the stage he will disappear. this is my code:
[Code]...
i am a beginner in action script / flex framework and i am facing a problem: i would like to have like a menu bar always anchor the bottom of the screen in normal and full screen mode... i try to set my component with bottom = "1" (so it should alway be at 1 pixel from the bottom of the stage ... But .. NO :)
[Code]....
The problem that I'm facing is in regards to the width of a sliding menu that I've created. The menu slides based on mouse x position and width of the movie. I would like the menu to fit to the entire screen regardless of the users resolution. I wanted to know if there's a way to detect a users screen width and then adjust the variable for screen width within my actionscript .fla if necessary.
View 10 RepliesHow can I make a action script controlled print screen that will save a part of a screen And can I filter a color out of it (so that only that one color will NOT be visible on the saved img) with AS
View 3 RepliesHow do i make site resize to a persons screen so that it fills their screen.
View 2 RepliesI want to make a box come from off screen then bounce back and forth and then come settled down in the middle of the screen. It can be random bouning intervels or a set amount.
View 6 RepliesI'm new to Adobe Flash CS4. I'm making an animation of some fish underwater. I have 2 small fish motion tweened to follow a large fish from left to right. When I view the animation in full screen the small fish seem to be wiped off the screen at a certain point. The tween box continues to follow it's path but the symbol disappears. This only seems to happen with larger objects.
[Code]...
I'm making a side-scrolling game, with a (theoretically) infinite background. I have a block engine that places the blocks on the bitmap canvas. Now here's the catch. I'm using the bitmapData.scroll() function. Now unless I clear the screen each time the character moves, it's going to leave ghost images of the border of the screen, like this picture: zanzlanz. tumblr. com/post/18857712784 If I clear the screen each time, then it generates a lot of lag (because it has to repaint the objects again). I'm a bit lost on how I can scroll without leaving streaks of the side of the screen and without repainting the entire screen.
View 1 Repliesim making an application on the chicago bulls, its nearly finished but ive hit a problem i cant fix, when i try and move from the roster screen to any of the other screens the items on the roster screen stay visible and the script on the new screen doesnt work.URL...
View 7 RepliesI have an AIR application that will go full screen when the application starts:
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE; The stage size is 2560 x 1024. And I have 2 moniters (1280 x 1024 , 1280 x 1024) When I start the application, it shows my application on one of my moniter only.
I need the left side of the stage to be shown in moniter 1 and right side of the stage to be shown in moniter 2. Currently, both sides are shown in moniter 1, and in moniter 2, it shows nothing but my default desktop. *The blue color line is a divider for better visual purpose. How do I make the left side of the stage to appear in moniter 1 and right side of the stage to appear in moniter 2 when the application starts in full screen mode?
Is a command for AS2 to make my movie file play fullscreen (stretch, fit to screen, anything).
goFullScreen(); is great but it leaves white bars left and right. What's odd is that I'm using Adobe Flash Media Live Encoder and it seems to display a perfect widescreen that I want as an input and output but once compiled in flash, it's more square leaving me with white bars left and right. The frame for the video in flash is also widescreen looking.
edit: I ended up stretching the width of the frame but if there is a better way through a command that would make my life easier so I don't have to adjust to every monitor that I run this on.
It seems like the loading screen (more like frame) is the last thing to load, so you are stuck staring at a blank screen for a while. How can i prioritize how the game loads so that the instant you get on the page the loading screen comes up immediately?
View 5 RepliesI have a flash app that contains a lot of data. Part of it has a video. I want to have an option to expand just the video to full screen mode. I have this working now, however it scales it proportionally based on the size of my flash app. Instead of doing that, how can I expand it to be 100% of the screen width?
Code:
function goFullScreen(base):void
{
if (stage.displayState == StageDisplayState.NORMAL)
[Code]....
I've been trying to attempt to make it so a .flv video will fit to the entire screen of the browser window. ( I already have my .swf file fit to re-size to any browser on any computer. I just can't figure out how to make the video as well) And obviously an external video so the flash file wont take forever to load.The point is this is to be able to have the Video be the background. So I may put content (Links, information or whatever else) on top of the video.
View 2 RepliesActaully I am running a cards game. While running the game in between if I change the style portrait to landscape. then how can I detect the screen size and run the game according the screen style (Portrait or Landscape).
Actaully I have written the code to detect the screen as portrait and landscape. But in between if I change the game portrait into landscape, no more it works.
[ X ] Problem solved I just came up with something i have some trouble to handle I've tried a couple of solution but none seems to work perfectly
What I'm trying to do is simple, get my flash to go full screen, but whatever resolution the user has, my flash must centers itself with the biggest proportion possible, and two movie clips goes right and left of it, as if they were borders.
I've been able to do this with a simple png, but i was not able with a movieclip where his dimension changes through time. ( i have a tween, so the mc gets really big even though just my stage is displayed)
I encountered on the building of my largest flash project to date. The project is a dvd-based presentation with audio, video and text that's xml driven.The project has been coming along nicely but recently a bug has popped up that I haven't been able to figure out. Here's what's going on:
There are three main sections in the swf, the intro screen, the main screen and the content screen. The swf is set to default to full-screen with the resizing and re-positioning of the elements built into a resize handler. Since each screen has different content, each screen has a different resize handler that is removed when transitioning to the next screen before the resize handler is applied for that screen.
For the first two screens, everything is working fine, but when you get to the content (third) screen (where the xml loads), the entire flash movie darkens, and nothing is clickable. This only occurs when the swf is in its default full-screen mode, if you escape full-screen the screen goes back to normal and the nav is clickable again. Also, if you've escaped full-screen mode before you reach the third screen, it remains normal and clickable.
I initially thought that it might be an issue with the event handler for the fullscreen, but the bug never appeared in previous versions with the same code. So I replaced the fla file with one that was not causing the bug and got a functioning swf out of it, even though it was including the same as3 files that the buggy file was including. I saved that file and sent it to the client, who has been successfully publishing from it without a problem. So I thought, problem solved, just a corrupt fla file. But now, any version of the swf that I publish has the problem, even ones that published fine earlier, and aren't using any of the new code that was being used when the problem started occurring. is it possible that my flash app has gotten corrupted or something? Has anyone ever experienced anything like this before?
My question is what needs to be done in order to make a .swf file go into full screen without falling to a black screen when a movie is played? I have tried coding it, however I come up with the following error.
[Code]....
What should I do to fix this? This is not going to be an HTML file, however, so the initial thought of changing the publish settings does not seem to work this time.
Regarding System.capabilities.screenResolutionX in FMX, how would I achieve a movie clip on my stage to automatically alight to the left of the screen/browser depending on the viewers screen resolution?
View 1 Repliesi want to user print screen command in AS3 and convert into bitmap as background in fullscreen i.e.
print screen from keyboard - keycode i.e. 44 [URL]
i want to know how can i run printscreen code from flash to capture user screen as i want to have flash presentation in 600x600px with disabled desktop and flash presentation should be in center of screen.
Quote:
import flash.system.fscommand;
stage.showDefaultContextMenu = false;
stage.scaleMode = StageScaleMode.NO_SCALE;
fscommand("fullscreen", "true");
[Code].....
I'm creating a flash site. I want the flash movie to fill the entire browser window. What size should I make the canvas, I've been experimenting with sizes and a canvas size of 750*370 fills my browser well on a resolution of 800*600
How do you accomodate different resolution settings? What's the most commonly used canvas size for this type of project.