ActionScript 3.0 :: Scaling And Adding The Block
Apr 27, 2011What the soundwave should do is follow the block, and scale appropriately. This is my code for scaling and adding the block, inc. soundwave
[Code]...
What the soundwave should do is follow the block, and scale appropriately. This is my code for scaling and adding the block, inc. soundwave
[Code]...
I am working a flash app that will display a block of text into a dynamic text field when a checkbox is clicked on. I have been looking around for this kind of thing but to no avail. I currently have the checkbox nested within two movieclips and need it to display the block of text upon click event in a dynamic text field that is found on the main timeline in its own layer. Ideally I would like the block of text to appear where the text curser is currently in the dynamic text field. I plan to have a lot of checkboxes each containing their own block of text to display.
View 0 RepliesI have this actionscript program that explodes a bitmap as you run the cursor through it. What i want to be able to achieve is as the bitmap particles move to the bottom left of the screen, i want them to grow in size, and as they move to the top right i want them to get smaller and so look like a 3D effect. I am having no luck with assigning scale variables to the bitmap particles.
View 1 RepliesSo i have an external as file which have a function. the function make the movie clip do something when it hit another object which i named "block."
but the external as file can't accses "block" movie clip which's added from the fla files and given an instance name as "block".
I've search through all the threads with "scaling" and "resizing" and can't find the solution.
Basically I have a GUI element on a gallery that I don't want to scale, while the rest of the page is free to resize/scale.
I think I need to add a listener of some sort to the stage, but I'm not sure how to do this.
I'm building some navigation that extends all the way from left to right across my SWF. When the window resizes, I'd like the nav buttons to get wider but not have the text on the buttons get wider.
The buttons themselves are rectangles with a vertical gradient and a stroke around the outside. I'm using 9-slice scaling so the stroke doesn't scale, but the middle (gradient) gets wider or narrower.What'd be great is to be able to select an object or layer and say "don't scale, even if the rest of this movie clip scales". Is there a way to do that, or will I have to do it via actionscript?
i have a diagonal movieclip that I am trying to scale along with the background video. The background video scales perfect, I am attaching the diagonal movieclip (br in the code as bottomright) with addChild
Instead of scaling with the window, it seems to repeat such as the image is displaying. this is the main section of the code that is doing the scaling
var br:mc_bottomright = new mc_bottomright();
addChild(br);
//proportional scale
if ((stage.stageWidth / stage.stageHeight)> (owidth/oheight))
[code]....
I am trying to achieve an effect of scaling a movie clip on click...very similar to [URL] When the user clicks on See, Hear, Play and Shop boxes, the boxes expand. I have created a box movieclip that has a bar on top. This bar is a movie clip inside the box movieclip. When i try to scale the main box movieclip, the internal bar movie clip scales as well. How to stop this?
View 2 Repliesreally sorry to bring this one up again. I've managed to create quite good working gallery. What I'm trying to now is create a menu that is attached to the scaling part but does not scale it self - in other words just changes position. here's an example of what I mean: galleru #1
View 14 RepliesWhat I'm trying to now is create a menu that is attached to the scaling part but does not scale it self - in other words just changes position. here's an example of what I mean: galleru #1
View 13 RepliesI maintain two web sites and am reasonably competent in Dreamweaver and Fireworks. Now to get into Flash.I want to produce a banner which shows a flag + Welcome in that language and have about 20 nations to cover. Can anyone please point me to a guide as to how to get this started?
View 1 RepliesI have a question: The following code, which works OK in Firefox and Safari, gets IE8 to throw a pop up block The simple code:
[Code]...
I've got an AIR app that is loading mx:HTMLs. I would like to block the ads that show in them just like Adblock Plus for Firefox does (see http://adblockplus.org/en/). I subscribe to the Easylist USA filter.
var req:URLRequest = new URLRequest("http://www.google.com");
thisHtmlWindow.open();
thisHtmlWindow.htmlContent.htmlLoader.load(req);
I don't know where to begin to interrupt the HTML GET-ting process in actionscript. This is where I suspect I can add the HTTP filter. It'd be nice to subscribe to the filter and periodically download it/update it to make sure the major ad networks are blocked.
Something I've always wondered, but never got round to asking is should I use...
Code:
}
... or...
Code:
};
... at the end of a code block? What's the difference as I've seen both used but no explanation as to why?
why my code not workinghere is my as code
package com_dp
{
import flash.net.URLLoader;
[code].....
ok i'll try and explain this best i can, on my site i have a menu that takes up the whole of the content area.. the plan is that when the user clicks the menu button within a content page the menu would appear over the top however with a slightly transparent background so you can still see the last visible content page in the layer underneath.. i've got this to work however the buttons within the content page are still active.. is there a way i can make the menu layer 'solid' so the content below is only visible but not accessible?
View 5 RepliesHow do we make an entire block of code (maybe 10 lines) as comment.
Maybe just to deactivate a code block when trouble shooting AS code.
I want a movieclip to appear in a drag and drop game. When you successfully drag the right object and drop it then an animation is called from the library.The animation doesn't appear. However, when I use the same code at the beginning of my programme it does appear so it's not that part of the code that is the problem. Also, a trace statement does trace so it is running the code.[code]...
View 7 RepliesFlash banner block up authorization div. Currently it looks like:
View 2 RepliesI am trying to make a pong like game but i need to find the offset from the center of the paddle so that i can make it bounce differently depending on where it hits the paddle. How can i achieve this?
View 1 RepliesI want to make a synchronous request to a server. I want the entire program to stop processing anything until the request is complete and the server has responded; what is the proper way of doing this?
View 3 Repliesi'm watching actionscript manual and can't understand this code, could you please explain what it is.
View 2 RepliesI am working on an archive that contains a large number of flv and swf videos. The plan is to make this archive available to my site visitors to be able to go back and look at some of the old flash videos. Simple enough. The problem is that most of these videos have a redirect at the end which will send you to a website that no longer exists and I do not have the original fla's to work with. These files are pretty old. So, what I'm looking for is a way to prevent these redirects and keep my visitors on my site.
View 3 RepliesIs it possible to use actionscript to move a block of text up (like movie credits) so it scrolls up smoothly?
I've tried motion tweening but no matter what i do, it jerks :-|
i have an html web site withe flash movie there is white block for a few second before the flash movie is up ow do i get read of it? can i make this white clock to be black or to have a clock the time until the flash movie is up
View 5 RepliesI've got a row of boxes (named box01, box 02 etc) in AS3 I'm trying to get it so that when you rollover one of the boxes, it scales up using tweenmax, and all the boxes to the right of the current box shift along by about 80 pixels and any boxes to the left stay where they are, and on roll out the box tweens back to normal size and the boxes to the right tween back to their original positions
[Code]...
I have a block of code in a game I'm making that checks to see if guy1 is in contact with guy 2:
Code:
var randomGuy1X:Number = Math.random()*550;
var randomGuy1Y:Number = Math.random()*400;
[code].....
How to make the effect of the pictures on this site: http:[url]....where the pictures show up in blocks with easy.
View 3 Repliesif there is a way to allow the page content to still be clickable with a flash animation the size of the webpage over it. I have a flash animation the size of my page that is a loading wave that drops to the bottom of the page after a few seconds but even though its dropped and the page content is visible.. i cannot click anything.
View 2 RepliesI follow this steps and manage to play videos on my flash movie, [URL]is possible to block the ads?
View 1 Replies