I am creating a emptyMC that my splash page will open up on. So when I create a new symbol (my empty movie clip) how do I set the center point/orientation of it to the top left hand corner???
We are developing a RIA for restaurant industry. Our screens have buttons, movie clips, Grids, containers etc etc.
If the user logging in has preference set for being 'left handed', we need to tweak the already designed screens to alter the layout. I.e. swap screen left and right.
I am guessing that as of now, all the containers which have horizontal layouts will need to swap the order of their children.
I've created an empty movieclip in _root and loaded an image into it but whenever I do trace(_root.newMC._width) I get a 0! I've had this problem in the past but never really looked into it!
I have the following code: Code: with _root { createEmptyMovieClip("file", 0).loadMovie("someimg.jpg"); ["file"]._x = (Stage.width - ["file"]._width) / 2; ["file"]._y = (Stage.height - ["file"]._height) / 2; lineStyle(3, 000000, 100); [Code] .....
The problem I'm having with this is that when it looks for Stage.width it's actually trying to find _root.Stage.width. How do I get around that without breaking out of the 'with'?
I've been using the great tutorial on Interactive Image Panning - [URL]
Is it possible to make the image pan equally to the left or right? At the moment it move mostly toward the right-hand side, but I'd like it to move left first if the mouse hovers on the left-hand side, for example.
I have a block that i'm trying to make move from right to left, and if the block gets to a certain point, it will move back to it's original position. So, i have this on my block (movieclip) rightnow
I've managed to find the tutorial for custom mouse pointers but I haven't managed to find quite what I need.What I want is a mouse pointer thats actually a car (an overhead view) that rotates as tho it was driving. So its orientation is dependent on the direction the mouse pointer is moving. Basically I want the car to face the direction its driving in.
Well I started playing around with some coding for Android (because I want to make an App for my YouTube community [URL] and I got some pretty cool stuff working already but just now I bumped into this weird problem.I was trying out Auto Orientation (rotating the phone for portrait or landscape view). And in Flash the BG Movieclip is at 0,0 but on the phone its more like -20,-40...I also had a "similar" problem with a swipe tryout where in Flash the swipeable pages where completely filling the screen but on my phone I had a top and bottom white bar (flash's bg, so if i made this black it would be black on the phone also) of about 10-15 px...
I have a jet_mc object flying from left to right, i got that part ok but my question is how can make it fly from left to right again and again untill the user finish the game. what line of code should i add to make it loop.stage.addEventListener(Event.ENTER_FRAME,run)function run (e:Event){ jet_mc.x-=5}
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 );
1. I would like to make an animation where a dice roles from the left of screen towards the middle. Bit like this: I am thinking an animation, then put it on a path (not sure how to do this, but I know it can be done.) I have heard that swift3d could help me here, if so, give me a heads up. I could also make it an animation and make it bounce on the spot and use the inflash camera and draw back the distance to seem as if it is moving forward. Basically the main problem is how do I make the animation of the cube?
i've done the fading grid tutorial at: [URL], but i was wondering if someone knew how to make the grid fade in diagonally from the left or right top corners (or bottom corners too) like this site [URL] i also have another question with the fading grid, does anyone know how to make the grid fade in from random spots on the movie clip instead of the left to right, up to down, etc. way?? i'd really like to see that effect happen, if possible.
I have 2 simple objects on stage: 1 is a static circle with a sharp tip (to show direction of the object) and 1 moving circle (moves according to users mouse or just a constant random move).
I want the static circle orientation to change according to moving circle position (so the sharp tip will always point at the moving circle).
What I did is divide the stage to 8 sections, each is linked to a specific orientation of the static circle.
I have a question about Papervision3D, or perhaps bitmapData, I am unsure where the problem is. I have constructed a program that takes 4 banners and splits them into pieces and then applies those pieces to cubes so that I can make a banner rotator. So after I run my program I have 10 cubes with a piece of a banner on 4 faces(front, top, back, bottom) of each cube. The problem is that some of the faces are oriented incorrectly(spun 180 degrees).
Is there a way in Papervision3D to spin a cube face? The other place I think the problem may be is when I create the bitmapData that will be applied to the cube faces. Is there some way to explicitly define orientation during bitmapData creation?
I want to call the Flex printing API to set the print arguments before sending printing command.But there is no method in Flex(FlexPrintJob or PrintJob) to set the printing orientation.Are there some methods to solve this problem?My project is running in B/S structure and the view layer is in Flex.
I'm trying to design a tablet flash applet. Does anyone know how to lock the orientation of the html embedded player player in landscape mode when it has been full screened? So far this is what I have in the html file: HTML Code: <embed src="fullScreenTest.swf" allowFullScreen="true" fullScreenOnSelection = "true" />
That did wonders for maximing the flash window, but the moment I change orientation on the tablet the flash player also changed orientation. I know there is a way of locking the orientation to landscape mode in ActionScript 3, but is there an ActionScript 2 equivalent for it?
And then the frame that's to be printed has "#p" for a frame label. It works, but I would like to be able to change the orientation from the default portrait, to landscape.
using a one line TextField with a fixed width that display text from the keyboard. I'd like that when the display text become greater, it aligns itself on the right, and let appear all the new characters, making the left ones disappearing. That is to say, it slides from right to left, letting always the right part of the text visible. I've tried using the "align" property of TextFormat set to "right", but it doesn't work (it just good to align a paragraph), and cut my text.
Code: Select allstage.addEventListener(MouseEvent.MOUSE_DOWN, shootArrow); function shootArrow(event:MouseEvent):void { do {
[code]...
So what im trying to do is make the arrow2, body and target move to the left of the stage and make the actual arrow (flyingArrow) to move down to give the effect of a flying arrow?
What I want is to have a horizontal menu with all my updates from right to left newest to oldest and have the first say 4 on the screen (or under the mask...?) and when you move to the right it moves right slowly and left does the same but the middle doesn`t move either way (you gotta be like 20px from the end to make it scroll I mean) and suggestions? like this one but this one doesn`t work so hot for me
I have around 20 buttons that together make a map of USA. I am using AS3 tool tip, which display name of region on mouse-over. I want to create a movieclip which will house all these 20 buttons and their actions(basically put everything under one movieclip).
But when I do that everything works fine but the tool tip gets dispalced. It appears almost at the edge of the stageAny way to make it appear near the mouse cursor?
Code I am using for tool tip is:
Button1.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler1); function mouseOverHandler1(e:MouseEvent):void { //creating a new tooltip instance
What I'm trying to achieve is to support Landscape mode in both orientations, so if user turns the device 180 degress, the screen should also rotate. But there should be no action at all, when user rotates the device to one of portrait orientations. Instead, I'm seeing width changes to navigator action bar and sometimes content in portrait orientations, so apparently preventing the event is not enough. I'm using the "official" way Adobe suggests, but the problem is that it's not working very well. Granted, the stage does not change, but it seems that there's something firing in navigator anyway, since you can see the action bar width changing.
I had some success with explicitly setting layoutbounds to fixed width in handler method - this prevents changing the actionbar width, but it's only a temporary solution - if the view is a subject to a transition, or some other redraw - it will again render with bad sizes. As if there was something below that was telling it that it's in portrait mode, even though I'm trying to prevent it.
Before you detonate with some silly ideas like "autoOrient = false", don't. It's clearly not a solution for this problem. Obviously it's a bug with Flex SDK - did anyone find a way to fix it or a stable workaround?
I'm trying to design a tablet flash applet. Does anyone know how to lock the orientation of the html embedded player player in landscape mode when it has been full screened? So far this is what I have in the html file:
HTML Code: <embed src="fullScreenTest.swf" allowFullScreen="true" fullScreenOnSelection = "true" />
That did wonders for maximing the flash window, but the moment I change orientation on the tablet the flash player also changed orientation. I know there is a way of locking the orientation to landscape mode in ActionScript 3, but is there an ActionScript 2 equivalent for it?