Placing something off stage in flex
Hi there, I am looking to make a state where an object or
component starts "off stage" and advances to a state in which it
will be "on stage". This was pretty easy to do in flash, however I
tried putting something off stage with AS, and my flex app just
added a scroll bar. I know i could just over ride the scroll bar to
not show, however I am not sure if I might actually need it later.
I am sure it must be a pretty simple thing to do - but I am just
not sure in flex!
Thanks for the reply! I figured thatr one out last night, but
also had to kill the horizontal scollbar to get it to work.
Similar Messages
-
How far off stage can I move a tweened object
Flash Pro CC 2014, all updates.
I have a movie clip that is about 5500 pixels wide. I need to have it enter and exit across a 1920 x 1080 stage. As I try to move it to the left, it won't let me motion tween it far enough to get it off stage. It reaches the point where the left side of the object is at -3780 and that's the limit. I can drag it farther but when I release it the movie clip snaps right back to this distance.
Also, I need to activate roving frames so the motion is smooth, but for some reason I don't get the option, it's grayed out in the menu. Don't know if this relates to problem #1 or if I am just doing something wrong.
This one is a hot potato, as usual, I have someone hyperventilating to get this back to them.
Thanks for any help!Except that it still won't work. That's one of the first things I tried.
If I position the mc at x = 1980 so it's left edge is just off stage, then motion tween the span, then go to the last frame of the span, I enter -5478 into the x value in the properties panel and it turns it back to -3779 when I change focus just like when I drag it. It's like there's a limit on how far it will let me go.
If the mc is not in a tween I can slide it left forever (thank you unlimited pasteboard), but in a tween it refuses to go past x = -3789. Is there a tween limit somewhere? It won't go more than 7740 to the right either, just snaps right back when you release it or change focus in the properties panel. -
Simple "next" buttons & off stage question
Hi, just getting myself reaquainted with Flash after not using it since ActionScript 1.0 was around.
I'm having trouble creating a simple "storybook" for my son. I'm wanting to add a "next" button in the corner of each page to jump to (and play) the next scene. I've tried with frame labels and numbers, been searching online for 2 days but nothing I've found seems to work.
Can anyone help?
here is the fla file: http://db.tt/IbZeiv6
Also, the things I make are for my Android phone and tablet, is there a way I can stop the things off stage from showing?
for example, I am making it mainly for my tablet, but if I play it on my phone, it has a slightly different aspect ratio so there's white borders at the top & bottom (project has a white background) and if something is slightly off stage it shows over the white background at the top/bottom, is there a way to stop this?
thanks in advanceShould be like this:
stop();
cover_next.addEventListener(MouseEvent.CLICK, buttonClick);
function buttonClick(event:MouseEvent):void{
gotoAndStop(1,"Page1");
For off stage please use mask on the stage. Better change your framerate(FPS) to 24. -
I have a director movie from which I wish to print. I have
created the image I wish to print, which is made up of several
sprites, and put a border sprite around this. What I wish to be
able to do is to print this group of sprites from off stage. The
user should never see them appear on screen. I have previously used
code along the lines of:
stageImage = (the stage).image
spriteImage = stageImage.crop(sprite(83).rect)
member("printimage").image = spriteImage
to take a section of the stage and store it as a cast member
which I can then print. However because I want my section to be
taken from offstage I am unsure how to do it. I have tried taking
using the sprite(83).rect to define the image but this doesn't
work.
Any help will be most appreciated.I don't think you should be any different than the rest of us
and escape the
hassle of assembling printable pages using Print-O-matic;)
But Print-O-matic is the way to go hands down.
Craig Wollman
Lingo Specialist
Word of Mouth Productions
212-928-9581
www.wordofmouthpros.com
"thismonkey" <[email protected]> wrote in
message
news:er49ct$h7q$[email protected]..
> Another issue is that the combined size of the table of
sprites I which to
> print is bigger than my stage so I cant simply place it
on stage and print
> the
> stage either.
>
> The on screen feedback is displayed over 3 screens where
as the printed
> feedback puts all 3 pieces into one big table (hence
being bigger than
> stage
> size) and this is what I want to print.
>
> I have used printomatic before, but I cant simply amend
cast members to
> the
> document as they need to print out in the correct
location or else the
> feedback
> (and ticks/crosses) will not line up/be relevant. Also a
problem with
> printing
> off individual sprites, hence I need to grab a
'screenshot' of the table
> from
> off stage, store it as a cast member which I can then
print.
>
> Im trying to give as much info as possible as I am
running out of ideas.
> -
Hey guys.
I'm trying to write code for flash to scroll through a series
of vertical buttons on the stage. There are off stage buttons that
the movie needs to go to when you scroll down. Known problem of
Flash Lite is that you can't scroll or detect any buttons that are
off-stage. Has anyone encountered a problem like this before? I've
searched around and got no real good results.
My first theory to do this is more of tracking on-stage
buttons and using it to move the movie and bring off-stage buttons,
on stage. But it starts to make the code complacated. I was hoping
to just to write code that track if its off-stage and then go, hey
bring it on stage.
Any help would be super appriciated. Thanks alot!!!A common approach to creating a scrolling menu is to put your
buttons in a movie clip, acting as a container, then set the movie
clip _y property to reposition the movie clip so that the offscreen
buttons appear on screen and the previously on screen buttons move
off screen. -
Hello,
I just do not want to use the mail program. I go directly to my email account. Mail always pops up when I try to email something off of the internet. Do not want to use that program. It is not working.
Thank youHi Judy, one silly thing abiut it, is you have to setup Mail, even with a fake account to get to Mail>Preferences to select your default app for Mail!???
Though I dislike Mail.App myself, it's a lot easier than WebMail n a Browser though... maybe we could help you set it up for a try... since you need to anyway to change the default Mail App? -
How do I print something off a web page to my Hp Photosmart 5510 e printer
How do I print off a web page on my iPad to the HP Photosmart 5510 e printer .
Hello 614,
In order to print something off a webpage in Safari on your iPad there are a couple of things that need to checked. First, you need to make sure your Version is at least 4.3.2 or above. This can be found in the Settings > General > About > Version.
Next, make sure your iPad and printer are both connected to the same wireless network and have valid internet access. Once this is done all you should need to do is open a webpage in Safari, press the Action button (looks like a right pointing arrow coming out of a box) and select the Print option. The iPad should detect any ePrint capable printers on the network (unless your router settings prohibit this) and allow you choose a printer and print.
Let me know if you have any other questions by replying to this post.
If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
Although I work for HP, my posts and replies are my own opinion and not those of HP. -
This is my first time buying something off of iTunes on this phone, I forgot my Apple ID security questions. What do I do?
Click here for information. If the option to have the answers emailed to you isn't available or doesn't work(the email may take a few hours to arrive), contact the iTunes Store staff via the link in the 'Additional Information' section of that article.
(90155) -
Im trying to buy something off itune and im getting a message to connect you guys
im trying to buy something off itune and im getting a message to connect
Click here and request assistance.
(81876) -
MY WIFE UPGRADED TO A 32GB AND PASSED HER 8GB ON TO ME. I WANT TO RESET MINE AND START FRESH BUT EVERYTIME I TAKE SOMETHING OFF MINE IT COMES OFF HERS AS WELL. HOW CAN I DO IT WITHOUT CLEARING HERS?
Connect the iPod to yur computer and restore to factory defaults/new iPod. You can also go to Settings>General>Erase all content and setting. Thge set up the iPod the way you want.
ALso, go to Settings>Store and turn off Automatic Downloads. -
I can't get my e mail to work it keeps saying can't connect to server. Have I turned something off? help!!!!!! :))))
Under the email provider find the account from which you can't send (you mention Yahoo) and click on that, then the first thing on the next page is the email address so click on that and scroll down to advanced, there you'll find SSL settings. I can provide screenshots if you still require help although I don't have a Yahoo account the instructions are the same for any email account.
-
HT201364 how to I take something off the start up disc
How do I take something off the start up disc
Move it to the Trash and empty the trash.
-
TitleWindow PopUp Can Be Dragged Off Stage!
I am making a popup window using a custom TitleWindow component which is opened by clicking a "Settings" button using the following method:
private var titleWindow:TitleWindow;
private function popUp():void {
titleWindow = PopUpManager.createPopUp(this, CustomTitleWindow, true) as TitleWindow;
PopUpManager.centerPopUp(titleWindow);
Everything is working fine, however, I am able to drag it completely outside the stage! If the user releases the mouse while the window is off the stage, then there is no way to find/grab it again and bring it back on the stage! Of course, this situation is not too acceptable for customers. Is there any way that I can limit the popup window to the boundaries of the stage?
Also, if the user clicks the "Settings" button multiple times, multiple popup windows will be opened! I don`t want to make the popup window modal. Is there any way to limit instances of the popup window to one?
Thank you in advance for any help anyone can give!
MattHi Matt,
Here's a solution for bounding the moves of a TitleWindow:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" >
<fx:Script>
<![CDATA[
import mx.managers.PopUpManager;
import spark.components.TitleWindow;
import spark.events.TitleWindowBoundsEvent;
private var titleWindow:TitleWindow;
private function popUp():void
titleWindow = PopUpManager.createPopUp(this, TitleWindow, true) as TitleWindow;
PopUpManager.centerPopUp(titleWindow);
titleWindow.addEventListener(TitleWindowBoundsEvent.WINDOW_MOVING,
titlewindow1_windowMovingHandler);
protected function titlewindow1_windowMovingHandler(event:TitleWindowBoundsEvent):void
// These are the new bounds when the window is moved.
// You can modify them to alter the result of when the TitleWindow moves.
var endBounds:Rectangle = event.afterBounds;
// left edge of the stage
if (endBounds.x < 0)
endBounds.x = 0;
// right edge of the stage
if ((endBounds.x + endBounds.width) > this.width)
endBounds.x = this.width - endBounds.width;
// top edge of the stage
if (endBounds.y < 0)
endBounds.y = 0;
// bottom edge of the stage
if ((endBounds.y + endBounds.height) > this.height)
endBounds.y = this.height - endBounds.height;
]]>
</fx:Script>
<s:Button click="popUp()" />
</s:Application>
Basically, I add an event listener for the "windowMove" event on the TitleWindow and limit where it can move around in the application. You can see the ASDoc for TitleWindowBoundsEvent for more information. Hope this helps!
-Kevin -
MC to follow cursor but not off stage..
Howdy.. I have some info boxes that show up upon MOUSE_OVER of an MC. I set their position to mouseX and mouseY once I want them to appear. The problem is that when I mouse over something near the edge of my stage, the info box appears beyond the stage's bounds. Is there a way I can contrain the infobox X,Y so that it does not go off the state?
Right now, this is how I define the X,Y of the text box (pretty simple).
trlinfotxt.x = mouseX;
trlinfotxt.y = mouseY;
thanks in advance..
-joshYou can use conditionals to adjust the x/y positions if the mouseX/mouseY positions would place the mc hanging off the stage... you probably need to check all sides. In general...
if(mouseX < someMinValue){
trlinfotxt.x = someMinimumX;
} else if(mouseX > someMaxValue){
trlinfotxt.x = someMaximumX;
} else {
trlinfotxt.x = mouseX;
and similar for the y side of things. -
Turn Off Debugging in Flex Builder
Forgive me if this is a stupid question... I'm using Flex
Builder 2.0.1 and everytime I build my project it creates the
*debug.swf files. I even have the "-debug=false " option specified
in the "Additional Compiler Arguments"... I also notice that it
seems that my project is being compiled twice (?!) because when I
have coding errors the same error is displayed twice.
I'm trying the really optimize the speed of the build process
and am sure that by preventing Flex from creating the debug files
will chop off at least a few seconds.
Thank you!Forgive me if this is a stupid question... I'm using Flex
Builder 2.0.1 and everytime I build my project it creates the
*debug.swf files. I even have the "-debug=false " option specified
in the "Additional Compiler Arguments"... I also notice that it
seems that my project is being compiled twice (?!) because when I
have coding errors the same error is displayed twice.
I'm trying the really optimize the speed of the build process
and am sure that by preventing Flex from creating the debug files
will chop off at least a few seconds.
Thank you!
Maybe you are looking for
-
I have the latest Thunderbird installed on a new 64-bit Winblows Eight netbook.. fantastic program, but one problem is driving me absolutely batty, and after using the latest Thunderbird for weeks, I simply can't figure out how to fix it.. I'm on a l
-
Hi all, We are implementing a Inbound syncronous java proxy in our scenario. We were able to create and deploy the EJB successfully in the J2EE engine. The adpater configuration is also working fine. When we fire the message we are getting an except
-
Create Boot Media/Capture Media - Error -2147217379 (8004101d)
Hello All, I'm trying to regenerate boot media as I've added a new Network driver to my PE environment. Driver added fine, and Boot Image regenerated successfully, on all DP's. The problem comes when I try to create updated Capture Media, or Dynamic
-
How to block mac address in 2800 router
sir how to block mac addresses in cisco 2800 router
-
Debugger can't see XML variable data
I took a small app over from Flex 2 (really simple, load myxml.xml from the local directory and display contents into a textarea field). var pXML:XML = new XML( event.result.myRootNode ); textArea.text = pXML.toXMLString(); When I hit a breakpoint in