PDA

View Full Version : shared component- problems with components


hangalot
07-24-2002, 08:32 AM
hi all

am playing with symbols, what not. When i create a symbol export and make availible for import bla bla, then goto new movie import symbol, the symbol gets rendered fine, except the combo boxes in it which doesn't render at all :(

major prob. what can be done :)

next question slightly more of the topic. when i attach a symbol(movie) dynamically :
function createPara(name){
paraCount++;
_root.attachMovie("ParaNode", name , paraCount);
}
the pointer to obj resides in in name, jaja? so what i want to do is get this pointer in an array.

maybe its just cause its late but i canna get it right!

example: arrParaNodes = new Array(4);
function createPara(name){
_root.attachMovie("ParaNode", name , paraCount);
arrParaNodes[paraCount++] = name;
// but if i call function on new instance of obj, no success
//thus arraParaNodes[paraCount] == undefined !!!!!!
}


;)

pinkaboo
07-24-2002, 09:53 AM
hi :)
Hmm, I hope I didn't get a bit lost in your explanation here, but try this:


function createPara(){
symbol=_root.attachMovie("ParaNode", "paraNode"+i , i);
arrParaNodes[i] = symbol;
//trace(symbol);
}
arrParaNodes = new Array();
for(i=0;i<5;i++){
createPara();
}


hope it helps anyhow

pink

ps as to your combo box query, I haven't played with those so I'm sorry no clues from me :(

hangalot
07-24-2002, 11:02 AM
thanks for reply... was suffering for a bit but sleep seems to have solved the prob. :|

anyhow here is the code for a dynamic array of movieclips:

stop();

// array for storing paraNode 's
arrParaNode = new Array();

// not realy necesary anymore can use arrParaNode.length ....var paraCount = 0;

function createPara(name) {

paraCount++;
// just add that 2 my array, thank u very much ;)
arrParaNode.push(_root.attachMovie("ParaNode", name, paraCount));

for (i=0; i<arrParaNode.length.toString()-1; i++) {
trace(arrParaNode[i].getXml().toString());
}
}


as for my first question, i wasn't refering to shared components, but to shared library! (late night stuff :) )

pinkaboo
07-24-2002, 11:18 AM
as for my first question, i wasn't refering to shared components, but to shared library! (late night stuff )

LOL - okay :D

Well, I'm glad you got it sorted anyway.

btw slap some code tags around code that you post to the forums, makes it much easier to decipher ;) [*as][*/as] (but without the stars)

hangalot
07-24-2002, 12:13 PM
danke. tip appreciated. so does anyone know why a combobox inside a symbol which is imported into another flash fla does not render?

the rest of the symbol renders fine, and the methods r availibale (no use without the %&*$# combobox though!)

if want i can even attach the swf and the import symbol details....

:confused:

dconlin
10-29-2003, 06:05 PM
Any luck with this problem. I'm in a similar situation. WHen I attach a clip that has a comboBox in it the comboBox methods don't work. Normal movieClip properties like alpha work though.

Thanks!