General Question

goose756's avatar

Flash CS4 question, using AS3?

Asked by goose756 (655points) November 12th, 2009

OK here is the rundown.

Frame 1 has a dynamic textbox that says T-shirt. Frame 2 has a dynamic textbox with nothing in it. When I click a button on Frame 1 I want it to direct you to frame 2 and change the textbox in Frame 2 to say the same text that is in the textbox on frame 1 (“T-Shirt”). For whatever reason when I export the swf it says “Error #1009 Cannot access a property or method of a null object reference.”

However when I tell a textbox on frame 1 to change to say T-Shirt it works… and if I manually tell it to direct to frame 2 and insert “hello” in the textbox it works. It just won’t pull the textbox value from frame 1 – how do I get it to do this??

Observing members: 0 Composing members: 0

4 Answers

poisonedantidote's avatar

check your scope, are you trying to use the same function in the code twice?

got any code i can look at?

EDIT:

try duplicating the function that populates the text box, but give it a different instance name in each frame.

OutOfTheBlue's avatar

If i am reading and understanding this correctly, what you are trying to do can be done in an easier way, i am still trying to figure out what you mean lol

drClaw's avatar

Can you show us your .fla file?

OutOfTheBlue's avatar

Indeed, that would make it a lot easier, good thinking there claw….

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther