newbie-can any1 help?shrinking and growing button



  • 1. one bitmap in multiple movieclips
    Hi, I have a thumbnail bitmap image and I insert it into a MovieClip. When a user clicks on the movie clip it goes to another page where the user can see the larger image. I also want to display the thumbnail the user clicked on the large image page. When I add the bitmap image to a movie clip on the large image page; the bitmap disappears from the main page. Do I duplicate the image? I don't get it.
  • 2. is it a bug, or maybe there is an explanation?
    try this create a mc inside a mc (mcParent, mcChild) resize the mcParent: option 1: mcParent._xscale=300; option 2: mcParent._width=500; and than trace the width of mcParent and the width of mcChild. the mcParent get a new width value (origin * 3) but the mcChild has the origin width value. and the question is why?
  • 3. Opening a new browser window from flash
    Does anyone know of a method fo opening a link in a new window in firefox from within flash that isn't blocked by the popup blocker. It seems like the security in FF (I'm on has been tightened to prevent any _blank or calls from flash getting through. I've tried the standard getURL, fscommand and ExternalInterface call to a javascript method. Nothing now works. I understand the need for the popup blockers, but this is a legitimate popup only invoked on user interaction (click) - the same call in an onClick event outside of flash works fine and I guess it is blocked from within flash because there is no way of knowing if the call is invoked from user interaction or automatically - but seems a shame. So any other way of getting a new browser window to open from within flash in firefox?
  • 4. A Few Questions
    ok how do i play an audio in a action script? also how do i make a password script and a good loader?
  • 5. Pass variable from one SWF to another SWF
    I am having difficulties passing a variable from one SWF to a dynamically loaded SWF. I can get variables to pass into a SWF while using FlashVars in HTML. But in this case, I need to load the SWF file into another SWF file instead of directly via an HTML page & FLashVars. So now I can't figure out how to pass a variable from my main SWF file another SWF file. // testA.fla AS code: myText_txt.text = testVar; // this would display whatever I pass it when using FlashVars to set testVar in HTML // testB.fla AS code: this.createEmptyMovieClip("holder_mc", 0); holder_mc.testVar = "Does this show up?"; // it doesn't show up holder_mc.loadMovie("testA.swf"); //holder_mc.loadMovie("testA.swf?testVar='some thing i want to pass'");// doesn't work. Any insight is appreciated!

newbie-can any1 help?shrinking and growing button

Postby asdtfpobiagfojbasm » Sat, 08 May 2004 18:24:30 GMT

Hi folks,

 I'm a newbie... and have a problem. Basically I know what I want to happen, 
but I need some genius to convert my lay-terms into action script (mx 2004) or 
whatever works.

 Ok, I have a button that I want to smoothly grow when I rollover it. When I 
rollout of it, it then needs to shrink back to it's original size. But.... This 
is the tricky bit! -How do I make it so that if I rollout half way whilst its 
getting larger, it begins to shrink from that point on and doesn't jump/jitter?

 I need to set a limit to the size that it grows to e.g to a maximum 120x120px.

 Any help would be much appreciated.

Re: newbie-can any1 help?shrinking and growing button

Postby Shan-Dysigns » Sat, 08 May 2004 20:04:16 GMT

This might help get you started. I did this late, so it's not perfect, but it will maybe help...

Similar Threads:

1.making a picture frame grow/shrink to accomodate pic being displayed

2.making an instance shrink and grow continuously

This is kind of frustrating.  According to the Flash help, when using a Tween 
class, you can refer back to the tween with a "onMotionChanged" and 
"onMotionFinished" event handlers to call a function after the tween effect has 
finished or changed.  However, in both AS2 and AS3, neither of these work. I 
get an error in both versions saying that there is no property with the name 
'onMotionChanged' or the other.  Which means Flash itself does not recognize 
what it has in its own Help files as a proper event handler.  Am I missing 
something or is this just a cruel joke by them?  I have included the import 
actions in AS.  My code is attached.

 I'm trying to call repeat the initial tween transition (iconPulse) in reverse 
order.  I want to create an effect of a pulsing image that shrinks and grows.

 import mx.transitions.Tween;
 import mx.transitions.easing.*;

 var iconPulse:Tween = new Tween(this, "_yscale", Regular.easeOut, 80, 100, 5, 
 var iconPulse:Tween = new Tween(this, "_xscale", Regular.easeOut, 80, 100, 5, 

 iconPulse.onMotionFinished = function(){
 	var iconPulse = new Tween(this, "_yscale", Regular.easeOut, 100, 80, 5, true);
 	var iconPulse = new Tween(this, "_xscale", Regular.easeOut, 100, 80, 5, true);

3.can any1 help me with text fields?

if possible could someone tell me ho to make a flash movie where an input box 
saves the text inside to the bottom of a text (.txt) file and a dynamic text 
box loads the text every 10 sec's...

 sort of like a forum or chat room only not using a server so that when the 
text is entered into the input box it is saved to the end of a text file and 
loaded into a dynamic scrollable text box with all of the messages...

 Please help this is URGENT!!! 

4.can any1 help

I'm having real trouble with animating a flash menu if i send the .fla file to som1 do you think you could help. once you see it it will become aparent what the problem is .

many thanks

5.can any1 help me with text fields?

If you are running from an iis server then you could use the fileSystemObject 
to crete a text file and append to the bottom of it using getURL in flash to 
call the asp page that does the work. 

 If you are looking to do the whole thing locally then I doubt that flash (or 
the users system for that matter) would allow flash to create a text file 
locally. You may not have to though. If you are looking to create a ticker of 
sorts then try something like this.

 Create a hidden field on your htm page and keep appending values to it useing 
javascript calls from flash. Make it a pipe delimited list. Then you can get 
that hidden fields value whenever you want, parse it out and do whatever you 
like with it.

6. [News] Google Offers Support for Ogg, Apple Cans Flash

7. Flash display problem with shrinking-Help!

8. text in help panel has shrunk since 7.2 update

Return to FLASH


Who is online

Users browsing this forum: No registered users and 22 guest