David,

Looks like you're trying to change the y-value of your library object
(class) rather than the instance on your stage.

Where you now have:
this.backgroundvalue._y+=20;

I think you want:
this.backgroundvalue_mc._y+=20;

HTH
-Jim


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Brunswick
Sent: Wednesday, January 10, 2007 12:36 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] scrolling dynamic movie clip

Hello List, I am creating an empty movie clip container dynamically at
runtime. Then when the user selects a specific button a movie clip is loaded
into that container from the library. My issue is getting the loaded movie
clip to scroll.

 

Here is a sample of the code

 

stop();

theClip.createEmptyMovieClip("empty_mc", 1);

 

this.start_btn.onRelease = function() {

    attachMovie("backgroundvalue","backgroundvalue_mc", 1);

            backgroundvalue _mc._y = .9;

            backgroundvalue _mc._x = 0;

 

}

 

 

Then for the movie clip backgroundvalue scroll buttons I have this

Up btn

 

on(press, release, keyPress "<Up>")

{

            this.backgroundvalue._y+=20;

            }

 

Down btn

on(press, release, keyPress "<Down>")

{

            this.backgroundvalue._y -=20;

            }

 

This logic works with a movie clip in a frame on the main timeline. I need
to work with a dynamically loaded MC.

 

Any suggestions?

 

David Brunswick

Senior Multimedia Developer/OLP Administrator

FedEx Customer Information Services

Customer Service Organizational Learning

901-434-6605

 

 

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to