Flash Components and XML Binding
I just ran through the XML binding Bike Trails tutorial about
a hundred times. I can get that to work just fine. But when I try
to work with my XML file, it keeps falling apart. I just don't get
it! I've been working on it for 2 days and it's still not working
right.
For one, the bindings are not showing up right. I have 2
combo boxes and then a final one I'd like to use to list the
stores. Here's a link to basically what I'm trying to do:
http://www.thinkseed.com/test/stores.html
My bindings keep falling apart. I get null values all the
time for the second drop box that's supposed to house the States
(the one on the site is a fluke...I accidentally had the
<store> node on a separate line instead of nested in the
<state> node. No idea why that one sort of worked.)
Here's an example of the XML code:
The flashComponents are standard AS2 components, and you can look up their APIs in the Flash documentation. Here is the button docs:
http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00001977.html#3654189
Looking at that, there is a getStyle() method, and I just tested it out:
put sprite(1).getStyle("borderStyle")
-- "inset"
put sprite(1).getStyle("fontFamily")
-- "_sans"
put sprite(1).getStyle("color")
-- 734012.0000
I'm not real sure what that means (probably the hex color converted to a float), but you can change the color like this:
sprite(1).setStyle("color","red")
And here is a page that lists all the styles that are defined:
http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00001973.html#3136306
Similar Messages
-
Problems with Captivate Redirects, possibly Flash Security and XML
Hello fellow Captivarians,
First a little backstory, earlier in the year we developed a course that heavily used external image files, which were gathered and organised through an XML file, then placed into Captivate 4 through a widget. This was all developed in Actionscript 3 and was designed to be accessed locally, on the user's computer from a CD Drive.
We had a whole deal of issues with Captivate and Flash security issues, finding that we could not get the importing to work correctly in Internet Explorer as it outright refused to import the XML file (Presumably because of security issues). However, Firefox would work fine. Eventually we got it working via a bandaid solution by prepackaging the course with a firefox portable install.
Now many months later, we have discovered our previous solution still works, but it now outright denies any redirects from HTML page to HTML page, regardless if the content is on the CD or if it's on the harddrive. Buttons that link to external sources will not work, (even if it's just a local page in the same directory).Flash player simply refuses to redirect between HTML pages. We tried some older projects that were developed in AS2 - and this wasn't an issue.
The odd thing is however, on my computer it still works fine. However, on everyone elses in our office, it will not redirect at all. We are all running the same version of Flash Player, and the same version of Firefox...
Any ideas? Could it have been a recent update with the Flash Player that prevents this sort of interaction?
Cheers.Hi there
Have you tried configuring the Flash Security Settings? That's my guess.
Click here for a tutorial on how to configure
If this will be on CD-ROM or DVD, you may need to consider adding a light version of a Web Server to the media and launching via that.
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks -
Flash Components and find font (getStyle)
Is there any way to find out what Font Family is being used by Flash Components (i.e. the "button", etc)?
Searching the web I see some examples of how to use the "setStyle", but I don't see any any any info about using "getStyle". Maybe that's not even a command that exists. And nothing about the font is show in the ".showProps()" either.
ThanksThe flashComponents are standard AS2 components, and you can look up their APIs in the Flash documentation. Here is the button docs:
http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00001977.html#3654189
Looking at that, there is a getStyle() method, and I just tested it out:
put sprite(1).getStyle("borderStyle")
-- "inset"
put sprite(1).getStyle("fontFamily")
-- "_sans"
put sprite(1).getStyle("color")
-- 734012.0000
I'm not real sure what that means (probably the hex color converted to a float), but you can change the color like this:
sprite(1).setStyle("color","red")
And here is a page that lists all the styles that are defined:
http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00001973.html#3136306 -
Flash components and the properties inspector
Don't know if any of you have had experience in creating
components that
can have properties set using the properties inspector or
not, but here
we go.
I have several components which all have a 'data' property
that is an
Object in which a developer can store arbitrary data.
I have set this up in the component so that it will display
in the
properties inspector, thusly:
[Inspectable(name="Data")]
private var _data:Object;
Now, it does indeed appear in the inspector, but when I click
on the
field it brings up a box which then doesn't allow me to enter
any data
(see screenshot:
http://www.moloko.f2s.com/filetransfer/componentParams.png)
However, if I right-click on the symbol in the library, go to
Component
Definition, then click on the Data property in the Value
column, it
brings up a box that's a little bit more what I was expecting
in that it
contains the '+' and '-' buttons to allow me to add/delete
data, and
also some up/down arrows to allow me to move the data around
in the list
(see screenshot:
http://www.moloko.f2s.com/filetransfer/componentDefinition.png)
Anyone know what's going on with this? Is this a bug in the
Flash IDE or
am I doing something wrong??
MOLOKO
Macromedia Certified Flash MX 2004 Developer
Macromedia Certified Flash MX Developer
::remove _underwear_ to reply::
'There ain't no devil - it's just God when he's drunk' Tom
Waits
GCM/CS/IT/MC d-- S++:- a- C++ U--- P+ L++ !E W+++$ N++ O? K+
w+++$ !O M+
VMS? PS+++ PE- Y PGP+ t+ 5-- X-- R* tv++ b++++ DI++++ D+ G e
h-- r+ y++The flashComponents are standard AS2 components, and you can look up their APIs in the Flash documentation. Here is the button docs:
http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00001977.html#3654189
Looking at that, there is a getStyle() method, and I just tested it out:
put sprite(1).getStyle("borderStyle")
-- "inset"
put sprite(1).getStyle("fontFamily")
-- "_sans"
put sprite(1).getStyle("color")
-- 734012.0000
I'm not real sure what that means (probably the hex color converted to a float), but you can change the color like this:
sprite(1).setStyle("color","red")
And here is a page that lists all the styles that are defined:
http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00001973.html#3136306 -
Hi,
I'm using Flash CS4,i'm having problems creating a xml file to work
with the action script for a 3D carousel. I've created folder for
the image png file and icons xml using a normal notepad in windows
for file to work with the flash action script 2.0, but in output menu the msg says
Error opening URL 'file:///C|/Users/User/Documents/caroselFile/icons.xml'.
They're no compiler errors. Should the notepad be xml editor? I have been
told i can use a normal notepad.
Maybe i should of saved it in the fla directry but don't know where
it is.
Thanks Larell<icons>
<icon image="icon1.png" tooltip="" />
<icon image="icon2.png" tooltip="" />
<icon image="icon3.png" tooltip="" />
<icon image="icon4.png" tooltip="" />
</icons>
Message was edited by: larellG -
Hi,
I have been working on a flash app to provide users with an
FAQ area for a program I look after. I have all the faq solutions
in individual txt files which flash pulls in once the user has
selected a question which relates to their issue. The problem I am
having some of the text files use characters such as ' and %. When
looking at these files that flash pulls in half the text after
these characters is either missing or joined up without a space.
The dynamic text field has been set to render text as HTML
and I thought I would allow some basic html tags within the text
file, so I tried using the HTML number or name to reference the
correct character I need such as ' for ' and % for
%. Again these just made the rest of text after them disappear.
Can anyone help shed some light on a different way, or what
the capability of this method actually is? I was thinking XML but
I'm need very familiar with it and think I need some flash
communication software to work. Not sure if this is true if not
then maybe XML could work but will need some direction on how to
get started.
Many thanks for your time I'd appreciate any help I
receive.Hi me again,
I have been looking into XML and have got something very
basic working. I was wondering if there was a way to have all of my
faq solutions in an xml file (solutions.xml) each separated with an
element tag relating to the question. See attached code. The issue
is how to I get just the text for say installation when the user
selected the question relating to it.
I have a combo box showing all the questions so for example
'How to I install flash MX?' the data part would be
data:"installation". In the xml file the element tage would be
<installation>Insert the CD into your CD-Drive and follow the
onscreen instructions.</installation>. This would be the only
text I would want to be displayed in the answer_txt dynamic text
field.
I hope I have explained this enough and would really
appreciate some help. -
Hi...I am looking to an xml file to generate a simple text
link in my movie
that will load flv's. I don't want to load the links into a
component. I
just need simple link text buttons that change color on
rollover and act
like normal link buttons. Right now it loads into a list box
and I don't
like the default rollover stuff that can't be changed with
setstlye. Most
notable the box that appears and highlights around the
rollover choice. Can
anyone direct me in the right area toward a tut or something?
Not much help
on searches.
Thanksif you already have a fla that loads an xml file and assigns
links, you don't need to start over. just find the code that parses
the xml file. use some trace() functions to see what's being loaded
and assign mouse handlers to your buttons instead of to your list
component. -
Re: Flash components and Lingo variables
Than you very much for your response.
I get yet a <void> value.
>> try:
>>
>> getURL("Lingo:Flashnotas(\"" + V + "\")");
>
>Than you very much for your response.
I get yet a <void> value.
> try:
>
> getURL("Lingo:Flashnotas(\"" + V + "\")"); -
Hi all,
I am working on a new project that I can't seem to find any
help resources for. I am using the Flash Components, binding and
schemas to link together text fields, drop downs(ComboBox), and a
button to the XML Connector. The part I can't figure out is if
there is a way to make the button dynamically change it's
destination URL when the subject of the dropdown(ComboBox
component) is changed. In the XML file, I have nodes for all the
components to accept. Is there any way for the Component button to
accept the different <URL> nodes as I change the parent node
with the drop down box? I thought maybe a variable or an instance
name in the XML Connector or Button Component bindings or schema
area could work. But no luck yet. Thanks in advance.huh! I'v tried searching for that phrase exactly & have
had few matching results!! How did you do that?? Thats magic that
is! Thanks alot! (Found one on the first result!) -
I have been looking all over for a simple "hello world"
example, on how to connect to a database, and pass a param, and
return a dataset. I would like one that does not use components.
(Actionscript only). That uses ColdFusion 7.x and Flash 8. Can
anyone point me to one?Thanks Craig, I saw that example, but it was meant for Flash
MX, and according to the Flash 8 documentation, the NetServices is
now deprecated. Anyway, I posted my question on another site and
some supplied me with a simple example. Here is the url if anyone
is interested...
sample -
Error in creating XML photo gallery with Flash CS4 and AS 3.0
Hello, all. I've been creating an XML photo gallery with Flash CS4 and AS 3.0 following a tutorial. I followed the instructions step-by-step but at the end I got the following error message instead:
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
Could anyone in the community assist me as to how to solve the problem? The script has no errors and last time I checked all the applicable files (the .xml file, the .jpg files, the .swf and the .fla file) are in my Documents folder on the Mac.
Looking forward to your suggestions!Check the folder structure
Flash is not able to get some file thats why the IO Error.
trace the url path just before u load the file and u will be abel to find whether that file is in specified folder or not.
http://www.darshanrane.com -
Toplink xml binding session.xml and servlet
I made a project with toplink-jaxb mapping
with simple pojo object it works fine.
I made another project with servlet
and the same session.xml and java classes
but when my process start it throw an exception :
jaxbexception : Provider oracle.toplink.ox.jaxb.JAXBContextFactory could not be instantiated:
It is like the process could not read the session.xml files, but this file and two xml file for the mapping are in the classpath (in WEB-INF/classes).
Have i to put these files in another place ?
Thanks.Hi,
thank you for your response but
here is the code :
javax.xml.bind.JAXBContext jaxbContext = javax.xml.bind.JAXBContext.newInstance(
"fr.cnav.cramse.pgpe.contactsnationaux"),this.getClass().getClassLoader());
but i still got the same exception :
05/03/01 08:24:33 exceptionProvider oracle.toplink.ox.jaxb.JAXBContextFactory could not be instantiated: java.lang.NoSuchMethodError: oracle.toplink.publicinterface.Session oracle.toplink.tools.sessionmanagement.SessionManager.getSession(oracle.toplink.tools.sessionconfiguration.XMLSessionConfigLoader, java.lang.String, java.lang.ClassLoader, boolean, boolean)
I have also a stange message in the log window in jdev :
Cutting log (size: 101767, max: 100000)Component returned failure code: 0x80470002 (NS_BASE_STREAM_CLOSED) [nsIFileOutputStream.write]Component returned failure code: 0x80470002 (NS_BASE_STREAM_CLOSED) [nsIFileOutputStream.write]Component returned failure code: 0x80470002 (NS_BASE_STREAM_CLOSED) [nsIFileOutputStream.write]Cutting log (size: 101866, max: 100000)Error cleaning up log: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsISeekableStream.seek]
Thank you for your help. -
Where to find javax.xml.bind and javax.jdo
One of my application require import javax.xml.bind and javax.jdo packages. I could not find them. Someone can help to let me know where to download them or they come with some other toll\packages?
Thanks
JohnHi John ,
I have the same problem: Getting the javax.jdo Packge . . . .(WHERE ?)
if you found out ow already, please tell me at: [email protected]
thanks,
edan -
Installing Oracle TEXT and XML DB Components on New Instance
I was told this may be the best place to ask my quesion
I have set up a New Instance or Oracle on a Solaris Unix box that already had Oracle 10g installed.
The instance was created fine, however I need the Oracle Text Component and XML DB Component installed as well.
Those are not installed with this instance. They are installed on the other instance on the box that was setup when oracle was first installed.
How can I add these components to this new instance?
DBCA was not used when the instance was created. The DBA here does not care for this tool.
ThanksHi,
the installation of XMLDB is described in the XML manual: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/appaman.htm#sthref2372
the installation of Text is described on Metalink in document 280713.1.
A nice document to start is on Metalink, it is document 472937.1. It gives Oracle components and the links how to install the components on different versions of Oracle.
Herald ten Dam
Superconsult.nl -
Hi,
I have been using jsfl to help out with my daily development
routines. I just recently wondering if I can have jsfl coded in the
custom flash components. I tried to do it, but so far unsuccessful.
So I am wondering if this is even possible. I am open to any
suggestions. Thanks in advance.Have you read this: http://cssdk.s3-website-us-east-1.amazonaws.com/sdk/2.1/docs/WebHelp/whnjs.htm ?
Maybe you are looking for
-
I am very new to collections and I am having an issue creating my first collection. When I execute the following code I get ORA-00900 invalid sql. apex_collection.create_collection_from_query ('TEST', 'select * from apex_collections', 'NO'); Any gu
-
Adobe app manager password reset
Hi, I can't find a way to retrieve or reset my adobe application manager password. Anyone know how? Many thanks
-
What is the best api for xml parsing?
I think that api comes with j2se is not that good for xml parsing. is there any open source api which is simple,easy and powerful,
-
Power Mac G5 Display Recomendations
I've just purchased a G5 1.8ghz from a friend and am looking for a good quality monitor to use with it as my old pc one is just so poor. I'm no super designer but am looking to edit HDTV footage, photos and also some photoshop editing. Budget is c £3
-
IPhoto '11 opens but any selection gets spinning wheel
I can open iPhoto, and when it opens the last event selected is shown. As soon as I make any selection, I get the spinning ball and have to Force Quit to get out. I am on OS 10.7.4 and have a very full hardrive (36GB available out of 500GB). Thanks,