ActionScript 3.0 :: MC.width Is Zero In A Moment And <value> In Another?
Jul 30, 2010
I'm trying to calculate the scale value of my MCs to make them fit perfectly the stage horizontal space.I'm using this function:
ActionScript Code:
var tableNow:Array = table.getTableCards();
var newW:uint, scaleVal:uint, startAddingTableFrom:uint;
[code].....
View 0 Replies
Similar Posts:
Feb 5, 2008
[URL]
I am using a .flv player. When I run it in my localhost then it runs properly, but after uploaded on the my dedicated server and let it run in my browser, only the menu apears and de video itself is missing..
It all worked a few days earlyer -so why did it disapear?
I used Flash CS3 and actionscript 2.0 It's compleaty in Dutch.. I didn't make the asignments -don't flame me. I know it's low-tech.
View 3 Replies
Jun 23, 2010
i'm having a sound looping issue at the moment on my site. I'm trying to make it so i have sparks shooting out of something, and at the same time the sparks shoot out i have a electric type sound. BUT the graphics all seem to work, but the sound for some reason, just keeps looping even when i'm not moused over. I put stops for the sound all over the place on like every frame and still doesn't work. Is there a bit of code I can use somewhere that will just mute the stupid thing after you take your mouse off the button?
here you can see what i'm talking about. I don't have it on loop. [URL].. the way i'm getting this animation to work, is by having one big movie clip and inside that movie clip i have the sparks movie clip, and the blue fade movie clip, then i just dropped in the sound where the sparks movie clip is.
View 1 Replies
Feb 11, 2012
I want to take a screenshot from my website of another website or preferable 1 part of it (an object tag).I want it to work this way: I click on a button that will send a request to screenshot the page at this moment. Several ideas are insert the page inside a flash object and screenshot it. Or opening a browser on the server and when I click the button send a request using AJAX to tell the server to screenshot with this browser.How should I do this because I kind of failing right now with the flash Idea. The page I am trying to screenshot is a live camera that uses a .wvx object. But I can't even do that with a .swf object
View 1 Replies
Apr 29, 2004
I'm working on a XML update modulle, but i have a big problem with my insertBefore I'm just trying to add an <xxx> tag before the <newsItem> tag for the moment, He only does inserts it befor the first <newsItem> tag, he refuses to do it before the 2nd, 3rd or 4th newsItem tag This is the XML code (for a better view [URL] )
[Code]...
View 1 Replies
Mar 20, 2006
I want to rotate the image in flash. kind of 3d moment
View 5 Replies
Jun 11, 2009
I'm using:this.flipQ1One.visible = false; and this.flipQ1One.visible = true; to hide and show a movie clip, the problem is that the movie clip is an object that flips then stops and by the time is shown (when the condition is complied) the flip had already happen while hide so you don't see it.What I need is that the movie clip starts playing at the moment the "visible" becomes true not before.
View 5 Replies
Sep 12, 2011
I am having trouble using symbols at the moment. Whenever, lets say, I have a character, he has many layers and I want to make him and all his layers a symbol. So I select everything using the selection tool and press F8, create the symbol as graphic and click ok. Now what happens is that all the keyframes for each layer are deleted except one randomly picked layer like "Hat" or something. So when for example I now clear visibility of the "Hat" layer and the whole drawing disappears. how can I create a symbol without this type of thing happening.
View 2 Replies
Feb 1, 2011
i am playing around with the rotationX/Y/Z properties available in flashplayer since version 10. for testing purpose i created a cube and put canvas objects on three sides of it (top, front, bottom) and created a tween to get the values required for turing by 90 deg. turning the cube (a canvas) using rotationX = xx works well when the three side-canvas objects are small and filled with a not-to-complex element hierarchy. when using larger and more complex content it slows down. the next idea was to remove the canvas elements content and replace it by a snapshotimage of the content instead before starting the turn, after the turn is performed the original content is put back on the sides again.
this results in a good perfomance increase. using a tween the last step of rotation is done in the function that is called as the tweenEnd handler. in this function also the process of copying the canvases content back is performed. unfortunately this results in a short hang of the cube right in that last rotation step, the reason for which is that rotation and copying back takes place at the same time. so i could wait for some time after having called cube.rotationX = endValue by using a timer or setTimeout(func, 500), but this is ugly. so my question is: after having called cube.rotationX = endValue a period of time is required to calculate data for the rotation and do the rotation itself. is there a way to find out the point in time when the rotation has ended, so that then the copying can be started ?
View 2 Replies
Mar 19, 2011
I would like the clients to print what they are seeing at the moment with the flash program.How is this possible? That is why I said (print screen of program) because its actually printing what the person is seeing at the moment.The thing is that my program leads to certain places and combinations of photos.So I would like this functionality.
View 1 Replies
Sep 5, 2004
I'm working on a final schoolproject at the moment and the file size is getting really large... Because I might update this project later with more footage, I've already put a lot of code on the buttons which I have put between comment tags for now, so I'll be able to update it later easily.
The max on our project is 10MB, now there is a lot of external footage like sound and video, but still all the flash files together are taking up a lot of space.
Does anyone know if a lot of comments in the code have any effect on file size?
View 3 Replies
Jun 9, 2004
I am doing a projector presentation that has music and I want in the moment the client goes into my site (included in the cd) the music of the projector to stop alone, any idea how to make it?
View 1 Replies
Mar 15, 2011
If my title ain't clear enough, I've got two bitmapData sheets with an image, one being the actual image, and the other image having the same structure, but all areas being visible are black, and all transparent areas being completely white. So far I've been playing around with:
[Code]....
View 5 Replies
Jun 9, 2004
Im doing a projector presentation that has music and I want in the moment the client goes into my site (included in the cd) the music of the projector to stop alone, any idea how to make it?
View 1 Replies
Oct 17, 2009
I use Flex Builder 3 and SOAP WebService on the server side. I know how to do a basic authorization of the client app (using httpHeaders), but I can't solve the problem of how to kill the browser dialog box (username, password) when the client have done an incorrect authorization.
View 1 Replies
Mar 10, 2010
I'm using an Ant build script for my project developed in Eclipse 3.4.2. It's actually a Flex 4 project (using Flash Builder Eclipse Plug-in).Everything worked ok. But someday something happened and now the executions of Ant build script is silently terminated each time I run it.
When trying to debug Ant script the IDE stops for a moment on a breakpoint and then skips it.Standalone Ant execution (using command line) works well for my script.
View 3 Replies
Feb 29, 2012
I am trying to use a text area to display some text on a mobile AIR app. It works fine whenever I am using the phone emulator on my desktop to debug, however whenever I put the app on my phone, the text displays, then disappears. I've also noticed that if I lock the screen and unlock, the text will display just fine when I come back.
Here's the code:
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" title="Program Overview">
<fx:Declarations>
[code]....
One other interesting thing to note is that it only happens on certain Views, and only on Views in the first ViewNavigator tab. This leads me to believe that there isn't really anything wrong with my use of the TextArea, but something else happening at a higher level in the application.
View 2 Replies
Apr 16, 2005
[code]How can I create a condition to delete this onEnterFrame at the proper moment?
View 2 Replies
Sep 11, 2009
i am making a game and i have my main character as a square and the enemies are circles at the moment. i have just made the circles home in on the main character, but my problem is when the enemies come inline with the x or y coordinates of my character they start vibrating/shaking. im not sure how to fix this. i have included my fla so you can easily see whats going wrong.
View 1 Replies
Sep 8, 2008
I have a xml gallery at the moment which loads in thumbnails and displays the larger images when clicked. What I am having trouble with is that some of the thumbnails have their own multiple images (more than 1 image for that thumbnail). I want to have a numbered menu 1,2,3,4 and when I click on the thumbnail depending how many sub photos there are for that one thumbnail I want to display an that image. And just to be dificult I also am displaying the larger images in another swf on the same page using local connection.
View 1 Replies
Apr 19, 2010
It's probably a no brainer, but I've spent the last 40 minutes or so looking for it to no avial.
I have a Canvas control with a fixed width and a horizontal scrollbar.I'm trying to find the actual width of the control.The .width (fixed width) + the part being revealed by the scrollbar.I tried explicitWidth, width + maxHorizontalScrollPosition, and some other combos but non of them hit the spot.
View 1 Replies
Jun 1, 2010
I am looking at the SimpleButton entirely wrong. Here's what I'm doing (inside of a MovieClip):
[Code]...
the close_btn.width and height remain 0. Am I supposed to just rely on the DisplayObject members of the SimpleButton completely and ignore width/height/x/y or what?
View 2 Replies
May 27, 2009
is there a way to make a minimum width and stop resize? I have a menu I am building that is locked to the bottom of the browser and 3 buttons on the left and a movieClip on the right. When you resize the browser window - currently - you can make the button on the right sink under the three on the left.
[Code]..
View 6 Replies
Feb 3, 2010
I've got a TileList with verticalScrollPolicy="on".
Is there a property that returns the width of the tileList minus the width of the scrollbar?
View 1 Replies
Jul 13, 2011
how to get a movieclip named "topnav" to resize it's width to match that of the stage. I am trying to resize the width of a top nav bar across a resizable RIA. I have started with the following code but with only partial success:
Code:
stage.addEventListener(Event.RESIZE, resizeListener);
function resizeListener (e:Event):void {
var reg2 = stage.stageWidth / 100;
[Code].....
View 1 Replies
Aug 31, 2011
Is there a function or property or better way to do what the following code do?
var width:int = 20
while (textField.defaultTextFormat.size > 1 && textField.width > width) {
textField.defaultTextFormat.size--
}
View 1 Replies
Mar 28, 2010
I am creating a nav in flex that pulls in buttons dynamically from xml. THe problem i am having is setting the button width to the text width. currently the buttons are all the same width and if the text is larger then it just cuts off. I've tried a few ways of doing this:Setting button width to 100%On creation of the button try to set the width of the button to the text programmatically. Something like evt.target.width = evt.target.textWidth;
View 1 Replies
Nov 21, 2011
Running into strange behaviour with flex 3.5. Here is a minimal code:build.xml target:
<target name="player">
<mxmlc
file="${APP_ROOT}/player.mxml"
[code].....
View 1 Replies
Aug 22, 2009
trace ("The Width is: " + stage.width + "."); trace ("The Height is: " + stage.height + "."); The Width is: 0. The Height is: 0. Why is it Zero instead of the document's size ?
View 2 Replies
Feb 15, 2007
is there a way to dynamically change the width of swf, accordingly to width of browser?
everybody hates horizontal scroll, but i don't want my flash movie to be tiny
View 5 Replies