PDA

View Full Version : Control values in Keyframe 3 from Keyframe 1


bhav27
06-02-2006, 11:09 AM
Hello Community

I've three keyframes in my flash application. In keyframe 1 I have textboxes and comboboxes. Depending on the values entered in these controls I generate a chart in keyframe 3.

But I have discovered a problem in flash. I can't access values of these controls in keyframe 1 in keyframe 3.

Is there any solution to this problem.

Please advice.

mayur_vnit
06-02-2006, 11:12 AM
ur combobox and ur textbox should last till frame keyframe 3

bhav27
06-02-2006, 11:15 AM
Good point.

But I cant show combobox or textbox together with chart. My keyframe 3 only shows chart.

Say even if it last till keyframe 3.... I can make their visiblity to false.... but thats not a good programming practice.... I've tried accessing through _root.textboxname.text but it does not seems working...... is there any other way.

Please advice

mayur_vnit
06-02-2006, 11:25 AM
set ur _root.textboxname.text 's value some variable in main timeline
like var var1 = _root.textboxname.text

then access it in 3rd frame

trace(_root.var1 ) or(just var1) // if it is main timeline only

bhav27
06-02-2006, 11:28 AM
I can't get the value of _root.textboxname.text in frame 3, it show undefined. Although you can access the value if you assign to _global variable. But I dont want to do that.... my requirement is to directly access control's value from any keyframe.

mayur_vnit
06-02-2006, 11:38 AM
i am sorry!
atleast i am not able to do so till this date
i dont think that flash supports that

bhav27
06-02-2006, 11:41 AM
Hello Community

I've three keyframes in my flash application. In keyframe 1 I have textboxes and comboboxes. Depending on the values entered in these controls I generate a chart in keyframe 3.

But I have discovered a problem in flash. I can't access values of these controls in keyframe 1 in keyframe 3.

Is there any solution to this problem.

Please advice.

Can anyone else help me solve this problem?

bhav27
06-02-2006, 12:26 PM
Write no replies here..... so to speed up things.... I've read all control values in the _global variables. now when I go to keyframe 3 I can access their values assigned in _global variables.

I take it Flash has no mechanism to access control's value cross keyframes.

mayur_vnit
06-02-2006, 02:33 PM
true!
thats what i was trying to tell you ! :)