Ask a Question related to Macromedia Flash, Design and Development.
-
MARK #1
Problem accessing movieclip properties (Actionscript2 newbie)
I am placing an instance of a movieclip onto the _root of my movie using
createEmptyMovieClip(...) and then attachMovie(...).
It all works fine - it appears and I can set and trace things like _x and _y
with no problem.
BUT
When I trace movieinstance._totalframes I get 1 when there are actually 64.
It also means that movieclip.gotoAndPlay has no effect.
Why are some of the properties what they should be but some not?
TIA
Mark.
MARK Guest
-
Accessing COM properties that take arguments
sorry if this has been covered before, but I have an external COM object which has properties that require arguments... e.g. to write a property I... -
accessing textfield inside movieclip
I want to create textfields dynamically and then be able to click on these textboxes to perform different actions depending on the value of the... -
MovieClip Properties
I am trying to load an external .swf into a movieClip "dropZone". I want to control the size of the dropZone so that the external .swf fits into the... -
Accessing text fields within movieclip
Fairly simple: var s = your_mc_name.your_textfield_name.text; trace(s); -
Accessing custom control properties
Hello, I've created a custom control and want to set properties in the aspx page. <%@ Page language="c#" Codebehind="test_control2.aspx.cs"... -
Brandon Bradley #2
Re: Problem accessing movieclip properties (Actionscript2 newbie)
without seeing the actual file I am just guessing here, so please bear
with me if I am covering redundant info.
Are you trying to find the total number of frames before or after the
movieclip is created? You may want to try checking this a frame later
(but with the movieclip still existing on the stage) and see if that
corrects your problem.
Also, where are you using the code movieinstance._totalframes? Is it on
the main timeline or in the movieclip itself? If it is in the movieclip
try moving it out to the timeline that contains the movieclip.
--
Brandon Bradley
Macromedia Certified Instructor
[url]http://www.attconline.org/[/url]
Brandon Bradley Guest
-
Mark #3
Re: Problem accessing movieclip properties (Actionscript2 newbie)
"Brandon Bradley" <brandonbradley@cox.net> wrote in message
news:8K2Vd.157$3z.66@okepread03...The movieClips are created in external class files. They are then referred> without seeing the actual file I am just guessing here, so please bear
> with me if I am covering redundant info.
>
> Are you trying to find the total number of frames before or after the
> movieclip is created? You may want to try checking this a frame later (but
> with the movieclip still existing on the stage) and see if that corrects
> your problem.
> Also, where are you using the code movieinstance._totalframes? Is it on
> the main timeline or in the movieclip itself? If it is in the movieclip
> try moving it out to the timeline that contains the movieclip.
>
>
> --
> Brandon Bradley
> Macromedia Certified Instructor
> [url]http://www.attconline.org/[/url]
to from other class files. It just seems strange that some of the porperties
seem to be as they should but some - like _totalframes are not.
I've posted the code to:
[url]http://www1.highburyquadrant.islington.sch.uk/flashoop/[/url]
It's my first try at Flash OOP so please be kind!
Thanks :)
Mark Guest



Reply With Quote

