[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 363
  • Last Modified:

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
0
sajayj2009
Asked:
sajayj2009
  • 22
  • 6
  • 5
  • +1
1 Solution
 
sajayj2009Author Commented:
Sorry one more thing i forgot to add is; i have skinned the combobox component in my mainproject. Will that be a problem. I do not find any accordion assets in my library.

Thanks
0
 
vindys80Commented:
Can you post the code?
I feel you might not be setting height for the component

Thanks,
Vindys
0
 
sajayj2009Author Commented:
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: ""});

Open in new window

0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
sajayj2009Author Commented:
Any idea?
0
 
sajayj2009Author Commented:
I will check tomorrow morning..Thanks
0
 
quizengineCommented:
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.
0
 
blue-genieCommented:
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.
0
 
sajayj2009Author Commented:
I will post fla soon. BTW i removed all skin elements and tried adding accord component, still it avoids header elements in accordion..
0
 
quizengineCommented:
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 ?
0
 
sajayj2009Author Commented:
hi quizengine | bluegenie,

buddies, attached are screenshot and fla for the problem.

Thanks pal
scrnshot.jpg
issue.fla
0
 
sajayj2009Author Commented:
Marked screen. Inside red portion is the missing headers appear as line.


scrnshot.jpg
0
 
blue-genieCommented:
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.
0
 
sajayj2009Author Commented:
Currently I am loading a movieclip from library to those accorion, you can see in screenshot above.
0
 
sajayj2009Author Commented:
Text is inside mc itself
0
 
quizengineCommented:
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.
0
 
sajayj2009Author Commented:
I tried removing all skinned instances from my library and still it comes same.
0
 
sajayj2009Author Commented:
XML2Object
XML2Object.as.txt
0
 
quizengineCommented:
Now I get

Error opening URL 'file.xml'

Does the contents of that file populate the accordion ?
0
 
sajayj2009Author Commented:
I repeat here again:

Currently I am loading a movieclip from library to those accorion, you can see in screenshot above.
0
 
blue-genieCommented:
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.
0
 
sajayj2009Author Commented:
xml
file.xml
0
 
sajayj2009Author Commented:
please let me know anything else needed?
0
 
quizengineCommented:
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 ?
0
 
sajayj2009Author Commented:
sure
0
 
sajayj2009Author Commented:
It is in

line 408...
0
 
sajayj2009Author Commented:
my_acc.createChild("square", "Square", {label:"Square", icon: ""});
                  my_acc.createChild("circle", "Circle", {label:"Circle", icon: ""});                  
                  my_acc.setStyle("openEasing", Bounce.easeOut);
                  my_acc.setStyle("openDuration", 1500);
0
 
sajayj2009Author Commented:
all instances are there in library, you can check it
0
 
quizengineCommented:
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.
0
 
blue-genieCommented:
i'm also not getting anywhere with this.
you have a variable called n - as in

CreateProductLinks(n);
where is that defined?
0
 
sajayj2009Author Commented:
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.
if(queryParts[0]=="url") {
	n=queryParts[1];
}
else {
	n=5;
}

change to:

if(queryParts[0]=="url") {
	n=2;
}
else {
	n=5;
}

Open in new window

0
 
sajayj2009Author Commented:
I am extremely sorry. Hope we are in different time zones, so cannot approach to your answers/suggestions soon.
0
 
blue-genieCommented:
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.
0
 
sajayj2009Author Commented:
my machine is infected, that is why i am not sending yuo complete files as zip
0
 
sajayj2009Author Commented:
Hi buddies,

The problem was one of the file named "Default" in library made trouble. Renamed it, and started working fine.

Really strange!!!

Thanks for all of your efforts in here.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 22
  • 6
  • 5
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now