I'm trying to create a widget for displaying a textbox with a scrollbar. I'm using Captivate 5 and Flash CS5 for Mac. I created the widget .swf file and it works great when I open it in FlashPlayer. However, I get the error "Not a valid widget" when using Insert > Widget.
So then in Captivate I tried File > New Project > Widget in Flash. Then I chose Static widget (and AS 3.0 was the only option under Actionscript). I hit "OK" and then Flash opened. If I immediately save the file and publish the .swf and try to Insert > Widget from within Captivate, I get "Not a valid widget" again.
Maybe I have the publish settings in Flash set incorrectly? It's hard to believe since I started the widget from within Captivate!
Hope someone has an idea.
Here is a post for creating a widget. Not sure is this will answer your question but may help.
Another resource as well.
Message was edited by: BaseballBirch
That error message could happen too when there is an exception thrown from one of the function. Sometimes, you don't get these exceptions from Flash because the functions are called via ExternalInterface. However, when Captivate call these functions, an exception is thrown and Captivate stops seeing the widget as being valid. I suggest that you comment your code in the functions that are called by Captivate then load the widget it. Them uncomment, one function at a time, to see which one is problematic.
By the way, if you are creating widgets, you should take a look at CpGears (http://code.google.com/p/cpgears/), there's also a good tutorial on how to create your first widget (http://code.google.com/p/cpgears/wiki/CreateStaticWidget)
Thanks for trying to help, Whyves.
The "Not a valid widget" error happens even with a blank widget. What I described in my first post was going through Captivate to build the widget. Flash opens up and then I publish essentially a blank widget, so there's no code to throw an exception. Captivate can't even open my "blank" widget, let alone the scroll box widget I created.
I'm at a loss right now.
I tried the same workflow as you mentioned and created a blank static widget. (I guess even you are creating a static widget)
I was able to insert that widget into captivate.
Did you place the widget into the flash player trusted location? In other words, just place the new widget in the widgets gallery folder (In Captivate Installed location) and try inserting it.
Thanks, Vikranth for the help.
I thought for sure this was the reason it wasn't working. However, I put my widget in /Applications/Adobe Captivate 5/Captivate Gallery/Widgets/ and I still get the error message when inserting it. Just to make sure, I created another empty widget and got the same result. I can insert the other widgets in that folder that came with Captivate, and it works fine.
Can you create a widget through the captiate, New Project >> Widget in Flash, workflow and share that fla file, so that we can check the issue?
You can e-mail to my address email@example.com
Thanks a lot for solving my problem, Vikranth. I'm going to post what you emailed me. Now I'm getting some work done!
When a widget is created then it should have the widget template,
but I am not seeing that in the widget that you have shared.
Follow the below workflow:-
1. Select "Widget in Flash" option from Captivate File >> New Project.
2. When the Fla file gets opened up in flash, click F9 (Window > Actions) in first
frame. (I am not seeing any actionscript code in the widget that you
have shared, but it should have widget template)
3. Copy the actionscript code from the captivate Installed
location\Gallery\Widgets\AS3\static.as and paste it in first frame
of the above fla widget.
4. Go to File menu >> Actionscriptsettings >> Flash menu and set the
source path to Applications\Adobe Captivate
5\ActionScript\export\as3 [Assuming that you have installed
captivate in Applications folder]
Now the widget should work fine. I have shared your widget with the
above modified settings and it is working fine now.
I am using a 64 Bit Win 7 laptop with 32 bit Captivate 5.5 installed. I am unable to run any widgets at all! I keep getting the "Not a valid widget" message.
Neither the pre-installed Adobe widgets or any others purchased elsewhere work. I have checked with our network admin to see if it is a network policy issue but we have tested this and it isnt.
Is this a known issue? Is there a 64 bit version of Captivate 5.5 or is there another fix I can apply?
What version of Flash Player are you on? Did you upgrade recently? Were you EVER able to use widgets and only NOW encounter this issue, or has this been the case since you installed Cp 5.5?
64 bit version OS such as Win7 should still run Captivate 5.5 as a 32 bit app. Widgets should not be affected.
Thanks for the speedy response. We are running version 11 of flash player but I’ve just found out its disabled by group policy. Would this be the cause?
We recently upgraded our OS to Win 7 from XP. Captivate widgets worked in XP but not now. Also recently upgraded from Captivate 5 to 5.5 as far as I can remember
Captivate also uses the Flash Player for certain internal functions, including widgets.
If Flash Player is disabled by security, I would definitely be looking at THAT as a high likelihood for causing your issue. You said that your were "running version 11 of FP). I'm assuming then that this means it IS installed, but for some reason users are prevented from accessing Flash content due to the security?
Is there some IT person with Admin privileges that you can get to test something for you? Ask them to log into your machine, open up Captivate 5.5, and try inserting a widget into a new blank project. If they do NOT encounter this issue (assuming their admin privileges gives them full access to use Flash Player), then you know what the issue is.
Since Captivate published content usually SWF and therefore reliant on the presence of Flash Player to function at all, I think you have a strong case to have FP enabled in your OS group policy.
Thanks for the help Rob I will get the ICT applications team to look into it.
Did you ever work this out? I just upgraded to win 7 64 bit and now my current widgets are behaving oddly and it won't let me insert new widgets, including ones already in the project! "not a valid widget" error.