Go Back   kirupaForum > Flash > Flash CS3

Reply
 
Thread Tools Display Modes
Old 11-23-2009, 06:37 AM   #1
Varl
Registered User
Scale content problem... (CS3)

Hey Guys,
I have a problem I can't figure out and I was wondering if anyone might have a suggestion. I have a photo page on which I have a movieclip (instance name - bigpic_mc) that I use to call up external images. It's dimensions are 400x300. On the same page I have another movieclip INSIDE which are the thumbnails and AS3 for each. I've set the scaleContent to true on the main page but the externally loaded images don't scale. I've included the code for the parent and child page. Can anyone point me in the right direction? I'm totally confused. I'm still getting the hang of AS3. Thanks for any help you might provide.

Sincerely,

Bryan

--------------------

Parent AS
------------

bigpic_mc.scaleContent = true;

--------------------

Child AS
------------

var bgalleryFolder:String = "bryan_pics";

var big_pic:Loader = new Loader();

var bimg1Req:URLRequest = new URLRequest(bgalleryFolder + "/Bryan1s.jpg");

function targetOver(event:MouseEvent):void {
event.target.gotoAndPlay("over");
}

function targetOut(event:MouseEvent):void {
event.target.gotoAndPlay("out");
}

function bpic1Down(event:MouseEvent):void {
big_pic.load(bimg1Req);
MovieClip(parent).bigpic_mc.removeChildAt(big_pic) ;
MovieClip(parent).bigpic_mc.addChild(big_pic);
}

bpic1_mc.buttonMode = true;
bpic1_mc.addEventListener(MouseEvent.ROLL_OVER, targetOver);
bpic1_mc.addEventListener(MouseEvent.ROLL_OUT, targetOut);
bpic1_mc.addEventListener(MouseEvent.MOUSE_DOWN, bpic1Down);
Varl is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?
 

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:44 PM.

SUPPORTERS:

kirupa.com's fast and reliable hosting provided by Media Temple. flash components
Creative web apps. Make your own free flash banners and photo slideshows.
Check out the great, high-quality flash extensions. Buy or sell stock flash, video, audio and fonts for as little as 50 cents at FlashDen.

Flash Transition Effects

Flash Effect Tutorials

Digicrafts Components
Flash effects. Art without coding. Upload, publish, deliver. Secure hosting for your professional or academic video, presentations & more. Screencast.com
Streamsolutions Content Delivery Networks Flipping Book - page flip flash component.
Flash-Gallery.com - Get your flash photo gallery (flash component or swf gallery Learn how to advertise on kirupa.com
 

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com