Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 05-03-2002, 08:55 PM   #1
YYZ11
Registered User
 
Join Date: Jun 2001
Location: Colorado
Posts: 16
Send a message via AIM to YYZ11
Default attachMovie oddity

I'll try to explain this the best I can, but it's strange...

I have a website SWF with 6 links on it. Each link loads a MC with the same name... i.e. About link loads AboutMC, Contact link loads ContactMC, etc. When the movie is attached it is then set to x,y position 350, 150 so it appears in the right place.

Everything is working fine UNTIL... I changed one of the MCs to include Scrollbar and Combobox components... That MC (called WhereMC) causes a problem...

The WhereMC loads fine, BUT whatever movie loads next loads at 0,0. (If I click the link again, it reloads it in the correct position.)

Something is wrong in WhereMC such that the (root level) function that does the MC loading is not working correctly...

My function looks something like this:

function loadLinkClip ( MCtoLoad) {
attachMovie(MCtoLoad, "bodyMC", _root);
bodyMC._x=350;
bodyMC._y=150;
}

Your thoughts?

Thanks,
Kenny
YYZ11 is offline   Reply With Quote
Old 05-05-2002, 11:45 AM   #2
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

Try this:
ActionScript Code:
function loadLinkClip(MCtoLoad) {     _root.attachMovie(MCtoLoad, "bodyMC", 1);     bodyMC._x = 350;     bodyMC._y = 150; }
or this:
ActionScript Code:
function loadLinkClip(MCtoLoad) {     _root.attachMovie(MCtoLoad, "bodyMC";     bodyMC._x = 350;     bodyMC._y = 150; }
They are only slightly different to your current code but may have the desired effect. I think the components are using dynamic attachments also which could be causing a depth conflict.
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder
Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Flip script / attachMovie, loadMovie problems kowee ActionScript 1.0 (and below) 7 10-23-2007 07:07 PM
attachMovie to a specific layer? Clox ActionScript 2.0 2 11-07-2004 12:50 PM
attachMovie and Linkage Identifier CyanBlue ActionScript 1.0 (and below) 8 05-20-2003 11:55 AM
attachmovie into holder for loadmovie Nate Acheson ActionScript 1.0 (and below) 6 02-11-2003 05:31 AM
attachMovie clips not executing code through button Blaster ActionScript 1.0 (and below) 3 04-09-2002 02:36 PM


All times are GMT. The time now is 11:55 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.