sajayj2009
asked on
Accordion component header problem
I have a accordion inside flash which is having two childObjects.
As an accordion and published file, it works fine. each header pops up with content and last header will close automatically.
PROBLEM:
When I include same accordion inside main project, headers appear to be a line, i can see them blinking when hover with mouse.
I am attaching original accordion swf. If you people have any such experience...please contribute.
accordion.swf
As an accordion and published file, it works fine. each header pops up with content and last header will close automatically.
PROBLEM:
When I include same accordion inside main project, headers appear to be a line, i can see them blinking when hover with mouse.
I am attaching original accordion swf. If you people have any such experience...please contribute.
accordion.swf
Can you post the code?
I feel you might not be setting height for the component
Thanks,
Vindys
I feel you might not be setting height for the component
Thanks,
Vindys
ASKER
Here is code.
import mx.core.View;
import mx.controls.Label;
import mx.controls.TextInput;
var child_obj:Object = my_acc.createChild("square", "Square", {label:"Square", icon: ""});
var child_obj:Object = my_acc.createChild("circle", "Circle", {label:"Circle", icon: ""});
ASKER
Any idea?
ASKER
I will check tomorrow morning..Thanks
HI, I'd like to try and help, but showing us a sample '.swf' that works, and not sharing the .fla where the component isn't very helpful. I can only offer suggestions on seeing *where it goes wrong*. If you aren't able to share the fla then I cannot suggest anything.
if I run your swf file as is, looks correct as you described.
if I load it into another file, it still looks correct.
You say you skinned the component in your main project - do you mean the file you are loading the swf into?
if so my only guess would be that you "broke" something in the skinning process.
if I load it into another file, it still looks correct.
You say you skinned the component in your main project - do you mean the file you are loading the swf into?
if so my only guess would be that you "broke" something in the skinning process.
ASKER
I will post fla soon. BTW i removed all skin elements and tried adding accord component, still it avoids header elements in accordion..
I don't know if this helps - kind of a random thought... have you changed / tried to change the font in the header ? Maybe it's because the font you changed to hasn't been embedded ?
ASKER
hi quizengine | bluegenie,
buddies, attached are screenshot and fla for the problem.
Thanks pal
scrnshot.jpg
issue.fla
buddies, attached are screenshot and fla for the problem.
Thanks pal
scrnshot.jpg
issue.fla
ASKER
ok don't know if quizengine has any better luck but we NEED all the files to get it to a state that will load your accordian, i.e the xml file and any other required files.
what you gave us right now won't compile, if it's a case of swapping out images that's fine you don't need to provide those.
what you gave us right now won't compile, if it's a case of swapping out images that's fine you don't need to provide those.
ASKER
Currently I am loading a movieclip from library to those accorion, you can see in screenshot above.
ASKER
Text is inside mc itself
There's a line in your actionscript
import com.utils.XML2Object;
that means it will fail when I test as I don't have that code. Plus, since you've skinned the accordion, and if memory serves the resources that you use to skin remain external to the fla, I'm unable to test that too.
If you don't skin the accordion and use a 'bog standard' component, does your movie work ? I think that's a good thing to test as it would give you clues as to where the problem lies. If an unskinned accordion works that would suggest your issue lies with how you have skinned the accordion, and that this is what's causing your problems. If that turns out to be true, then you'll face a choice of using an unskinned (but working) accordion, or to pursue your debugging of the skinning process.
If you do pursue that, start from *something that works* (even if it doesn't look like you want it to) and change *one thing at a time* and test. That way you should discover the step that's 'breaking' your work.
import com.utils.XML2Object;
that means it will fail when I test as I don't have that code. Plus, since you've skinned the accordion, and if memory serves the resources that you use to skin remain external to the fla, I'm unable to test that too.
If you don't skin the accordion and use a 'bog standard' component, does your movie work ? I think that's a good thing to test as it would give you clues as to where the problem lies. If an unskinned accordion works that would suggest your issue lies with how you have skinned the accordion, and that this is what's causing your problems. If that turns out to be true, then you'll face a choice of using an unskinned (but working) accordion, or to pursue your debugging of the skinning process.
If you do pursue that, start from *something that works* (even if it doesn't look like you want it to) and change *one thing at a time* and test. That way you should discover the step that's 'breaking' your work.
ASKER
I tried removing all skinned instances from my library and still it comes same.
ASKER
XML2Object
XML2Object.as.txt
XML2Object.as.txt
Now I get
Error opening URL 'file.xml'
Does the contents of that file populate the accordion ?
Error opening URL 'file.xml'
Does the contents of that file populate the accordion ?
ASKER
I repeat here again:
Currently I am loading a movieclip from library to those accorion, you can see in screenshot above.
Currently I am loading a movieclip from library to those accorion, you can see in screenshot above.
sajayj2009.
we're both trying to assist you here, we cannot if we can't replicate the problem with your source file.
the fact is the issue.fla you uploaded can't compile because there are files that you're referencing that we are missing.
If we can't compile it, we can't see your error - the screenshot does not help.
so either upload all your files, or strip out the unnecessary stuff and just upload the part where you populate your accordion.
we're both trying to assist you here, we cannot if we can't replicate the problem with your source file.
the fact is the issue.fla you uploaded can't compile because there are files that you're referencing that we are missing.
If we can't compile it, we can't see your error - the screenshot does not help.
so either upload all your files, or strip out the unnecessary stuff and just upload the part where you populate your accordion.
ASKER
xml
file.xml
file.xml
ASKER
please let me know anything else needed?
I believe that the issue may occur when the accordion (instance: my_acc) is populated with text, but I've simply been unable to find the part of your code that does this. Can you enlighten me ?
ASKER
sure
ASKER
It is in
line 408...
line 408...
ASKER
my_acc.createChild("square ", "Square", {label:"Square", icon: ""});
my_acc.createChild("circle ", "Circle", {label:"Circle", icon: ""});
my_acc.setStyle("openEasin g", Bounce.easeOut);
my_acc.setStyle("openDurat ion", 1500);
my_acc.createChild("circle
my_acc.setStyle("openEasin
my_acc.setStyle("openDurat
ASKER
all instances are there in library, you can check it
HI,
I've tried different ways to resolve this, and I am no further forward.
My only suggestion is what I would do in this circumstance - if the thing you are trying to use isn't working, and you're spending too much time trying to resolve the issue unsuccessfully, build something of your own that does the same thing.
I know that sounds wasteful of time, but you eventually have to balance that extra development time against the time spent trying to drive through the problem, rather than go around it. If in another three days time no one else has solved the problem for you, you might have been able to build something yourself that does what you need, and in less time than that.
I've tried different ways to resolve this, and I am no further forward.
My only suggestion is what I would do in this circumstance - if the thing you are trying to use isn't working, and you're spending too much time trying to resolve the issue unsuccessfully, build something of your own that does the same thing.
I know that sounds wasteful of time, but you eventually have to balance that extra development time against the time spent trying to drive through the problem, rather than go around it. If in another three days time no one else has solved the problem for you, you might have been able to build something yourself that does what you need, and in less time than that.
i'm also not getting anywhere with this.
you have a variable called n - as in
CreateProductLinks(n);
where is that defined?
you have a variable called n - as in
CreateProductLinks(n);
where is that defined?
ASKER
Sorry again buddy,
n is actually taking from URL string from the home page to get the category of the shopping cart.
You can set a value to n=2 now.
but "n" has nothing to do here, i think so.
n is actually taking from URL string from the home page to get the category of the shopping cart.
You can set a value to n=2 now.
but "n" has nothing to do here, i think so.
if(queryParts[0]=="url") {
n=queryParts[1];
}
else {
n=5;
}
change to:
if(queryParts[0]=="url") {
n=2;
}
else {
n=5;
}
ASKER
I am extremely sorry. Hope we are in different time zones, so cannot approach to your answers/suggestions soon.
the fact is as i've mentioned, until I can compile your file I can't replicate your problem to try and help, hence the "n" is valid.
Sorry, even with hardcoding your n value, I can't compile your file so I can't try help you further.
Sorry, even with hardcoding your n value, I can't compile your file so I can't try help you further.
ASKER
my machine is infected, that is why i am not sending yuo complete files as zip
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks