Flash components & XML
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!)
Similar Messages
-
Flash components+VB isssue
Hi,
I am doing a project which involves flah UI ,XML and VB. The
UI has two major Tree Compnents,One menu bar and a few Accordions.
All of these are populated with XML. Now this is embedded in a VB
application. The Flash swf will send data to the VB shell and the
VB writes the XML data with the changes , what ever the user had
done in the tree or accordion..(Adding or removing nodes or some
thing like that).All works fine ..But when user reloads the
application ..by clicking on a language selection menu item(To
change the language), the flash application goes awry. All the data
is loaded every field and compnents are populated with their
corresponding XMLs ..But Nothing is clickable!.
Tree nodes don't open, menu items dont open, accordions are
not collapsing.But they all are showing data.
Basic functionalites attached to simple buttons are
working..but other that that no other component works in a way how
it needs to work.
The strange things is that, if we create an VB alert while
changing the lanuage and reloading it again..IT WORKS.
We tried with delays and reloading and all. Nothing solves
the issue.
Can anybody please tell me where the issue is?
Note : The Project Worked well when it was deployed in a
webserver with jsp as the backend.The only change made was in the
way in which you send values to the backend.. apart from this the
flash code is the same.
Thanks And Regards,
BlueSquidradu_cosma,
> I start using a few flash components (combo, list) and
it seems
> they are too big, aprox 65k.
For all the benefits brought by components, their KB weight
is
definitely a drawback. That said, the ActionScript 3.0
components weigh
less then their ActionScript 2.0 counterparts.
> Probably there's a common library used for all user
interface
> components and that is imported in the project always.
You nailed it. In fact, if you study the components in the
ActionScript
2.0 Components Reference or the ActionScript 3.0 Language and
Components
Reference, you'll see the hierarchical "family tree" common
to all
comonents, then common to groups of related components.
> Is there any way to reduce the size of the swf, maybe
import
> ONLY what is needed, do we have that option?
Unfortunately, you don't have that option. When you import a
component,
it weighs whatever it weighs; you're already importing the
minimum that
component needs. On the bright side, when you import a second
component,
the combined total KB is usually considerably less than the
sum of each
component's individual weight.
David Stiller
Co-author, Foundation Flash CS4 for Designers
http://tinyurl.com/5j55cv
"Luck is the residue of good design." -
Using Flash Components in multiple SWCs inside AS-only project
Ok, this is a somewhat complicated issue dealing with SWCs and compilers. I've outlined steps to reproduce the problem below. I'm using the method outlined here to bring in Flash content to my project. I have 15-20 SWCs already, and it's working fine for those assets, the problem is specifically related to Flash's components (ComboBox, RadioButton etc.) If anyone has *any* advice on this, please let me know as we are completely stumped at this point!
The issue we're having involves using multiple external SWC files which contain AS3 components from Flash CS4. When two SWCs are linked to an ActionScript project (using Flash Builder 4 Beta (build 4.0.0)) there are collisions in the referenced classes which cause the most recently published SWC to knock out any duplicate classes in the other SWCs. A simple way to replicate this is as follows:
1. Create one FLA, called 'compA', drag one ComboBox, RadioButton and TextInput component onto the stage. Select all and convert to symbol, marking the symbol for export with a class name of Test1.
2. Create a second FLA, called 'compB', drag one ComboBox, Label and UIScrollbar onto the stage. Convert these to a symbol with a classname of 'Test2'.
3. Create a new ActionScript-only project in Flash Builder, called 'ComponentTest'.
4. Create a 'libs' folder in this new project. Select 'Project -> Properties -> ActionScript Build Path' and add the libs folder as a new SWC folder in the Library Path window.
5. Go back to compA.fla and right click the Test1 symbol in the library. Select 'Export SWC file...' and save it as compA.swc in the libs folder.
6. Do the same thing for compB.fla.
7. Edit ComponentTest.as and in the constructor, create an instance of Test1 and Test2, placing each on the stage.
8. Run the app, and the ComboBox will only be functional in one instance (whichever was published last.) The other ComboBox will behave like a MovieClip, cycling over the two frames in the stage asset (avatar and skin.) It will have no association to anything in the fl.* package.
Looking at the 'Referenced Libraries' in Flash Builder, compA may show it contains classes for the RadioButton and TextInput, but no ComboBox classes are referenced (sometimes it will show no classes at all, but this appears to be an unrelated bug with refreshing external libraries in Flash Builder.)
Unzipping the SWC files and examining their catalog.xml manifests shows all the necessary classes are listed (i.e. ComboBox is in both.)
Removing either SWC will cause the remaining one to work properly, so the problem appears to be in compiling the ComponentTest project which includes both.
Attempted Workarounds:
1. Create a new FLA, drag all components used in both files onto the stage and export a SWC called 'components.swc'. Add this SWC to the project's libs folder. In both compA and compB FLA files, add this SWC as an external library in the ActionScript 3.0 Publish settings. Re-export both SWCs. The theory is that the compiler will look for the required classes in the components.swc first, and thus not include them in the export, however this is not the case.
2. Same as above, deleting ComponentShim from both FLAs before exporting. The result is that no component classes are included, so all components act like MovieClips.
3. Add the Components source folder to the external library path of both FLAs, assuming the compiler will favor classpath references over compiled class references (ComponentShim). Same result.
Summary: We have been unable to find a way to use Flash Components in a project if they are referenced in more than one asset library. If we were able to import them once, and have all SWCs which need those classes use a single source, this might not be an issue, but the compiler does not appear to handle this (and we are admittedly not advanced enough to even know if this is possible.)Hi!
I'm having the same problem. Any news on the matter?
Also, this looks like a very similar problem.
Best regards,
X_AmonPL. -
Using Flash components as Widgets
I'm liking much of the functionality (and prettiness!) gained by third-party Flash components (www.flashden.net, www.flashcomponents.net, etc) that I'd like to incorporate into Captivate lessons.
Being a Flash and Captivate newbie, I haven't yet broken the code on how Flash, Widgets, and Captivate fit together. For example, I like one of the many OSX dock-like Flash components out there, and would like to use one for slide-to-slide navigation in Captivate.
Does this necessarily have to be done using a Widget? Is there any online guidance out there regarding Widgets in Captivate? Googling reveals very little information.
Thanks!It really depends on what you want to do with the particular component. I use components from www.flashden.net quite alot in my projects and most of them are not modified to act as widgets. For example photogalleries, image transitions etc. can be imported straight into Captivate, but you won't get any other functionality than what the original component offers.
If you want to have a OSX style dock menu you could modify one of the files from www.flashden.net to suit your needs. I wouldn't make it into a widget if it was me, since all you really need to do is to enable navigation in Captivate when the user clicks on a thumbnail. This can easily be done by just sending the commands directly from Flash (the rdCmd variables). You would have to create the thumbnails yourself though (and probably reference everything in an external XML file so it's easy to update), but it should be doable.
The idea from raj_cap about using the print widget is very good. If you want to have your menu create the thumbnails on the fly then you would need to go this way. I'm definetly looking into this because it's such a great idea (thanks raj_cap).
/Michael
Click here to visit the www.captivate4.com blog -
How to link pdf file in flash by xml ??
how to link pdf file in flash by xml ??
try to give <a href="your address">My Pdf</a>
and your textfield should be html enabled
mytextField.html=true
mytextField.htmlText=your xml text -
Problem with flash components in director tollbox
1- I have 2 buttons named "makeQst1BT" in frame 1 and "chkQst1BT" in frame 2, which both are draged from toolbox.
First the user gets a random question in frame 2 andhas to answer it, When the user clicks "chkQst1BT" its visible is to disappear after answering. it is done nicely and button disappears.by the follwing code.
sprite("chkQst1BT").visible =false
then later when user navigates back to a frame 1 again and wants to make a new question and presses "makeQst1BT" this button is to set the visible of "chkQst1BT" to true again by this code:
sprite("chkQst1BT").visible =true
BUT here I get script error indicating that PROPERTY #visible not found.
Why this happens? and how can I set the visible of chkQst1BT back to true?
( I get many similar script errors saying PROPERTY #text not found in the same movie)
2- I have draged many textArea flash components from toolbox, then want to change their ink from copy to background transparent, it appearantly accepts this choice but it is still displayed like "copy" with white bakgr.( I do it from property inspector window)
What is strange is that only one of text Areas changes appearance when ink changed to background transparant but not others.
Any ideas?
Thanks in advance!First off, you should know that the flash components aren't that predictable/stable to begin with, but anyway.
1 If the sprite only exists in frame 2 you can't change it's properties in frame 1. What you can do, and I'm reasonably sure you don't need to, is to put the visible code in a on begin sprite handler for a script on the sprite which should be run every time you enter frame 2.
2. Works fine here so I can only speculate on what's causing your problem. My guess is that the text areas share sprite channel with some other component during your movie and that component has it's ink set to copy. Move the flash text area component to their own channels or add a behavior script to them that sets the ink in the on begin sprite handler. -
Problem in loading Flash Components
Hai,
I have a problem in loading flash components using
actionscript.
Example( List Components).
I can load List components dynamically using frame script
like.
import mx.controls.List;
var myList:List = createObject("List","nList",10);
But I can't load dynamically from inside a class file like.
import mx.controls.List;
class testClass{
private var myList;
function testClass( ){
myList = createObject( "List","nList",10 );
But it is not working i don't know why ?
If any one knows Please reply me.
Thank you.The over flash file works if i'm loading images direct from a
path but, i'm using php script to pull the files in binary format
and, it's causing problems in in firefox.. -
hi all
It would be appreciated if any one let me know how to edit
bitmap which is imported in flash using xml and save the edited
bitmap back to xml in flash.
Is it posible to save the bitmap data in flash?
thanks in advanceYes you can... but like I said before you need to upload the
data from the changes you make to a server.
In terms of the solution... its unlikely that you'll find one
specifically for your needs. You will have to learn whatever you
don't know how already and maybe adapt some existing examples to
your needs.
To change the visual state of a movie clip... you just do all
the regular things that you want to do to it using flash... scale,
rotation, drawing API , textfields etc in actionscript. If you
don't know how to how to do that stuff, then you need to learn that
first. That's basic actionscript.
You can capture the visual state of a movieclip using the
BitmapData class. That includes a loaded jpeg. You can also
manipulate bimatp data using the same class. You should read up on
that if you don't know how to use it or check out the examples
below for uploading info.
For uploading to the server:
Here's an as2 solution that took 15 secs to find using
google:
http://www.quasimondo.com/archives/000645.php
If you're using as3, google search for "jpeg encoder as3" and
look through that info. There are also historical answers in the
forums here related to this type of thing that might help as
well. -
Flash Lite XML Driven Gallery Simple Question
Hello Flash Lite Gurus',
Someone Named "Mr. Samir K. Dash;" did a wonderful tutorial regarding Flash Lite XML driven Photo Gallery, and I have just a small question:
1> I changed the attributes schema of the xml as attached and noticed that it is not working, and I wonder what could be the reason (please see the attached XML new attribute schema, I didn't change fields names, I just changed the way the attributes' schema looks like).
The link to the tutorial is the following:
http://www.adobe.com/devnet/devices/articles/xml_photo_gallery.html
Looking forward to your help
best regards
TalalAs I look at your modified XML file, you need to make major changes in the script.
You have changed the attributes to become child nodes. So, you will need to use firstChild.nodeValue or childNodes[i].nodeValue everywhere.
Regards,
Hemanth Sharma
http://www.flashlitehub.com/blog -
We upgraded to EHP1 SP6 to get the flash component working in VC.
I uploaded the BO flash meters I found in a PDF (/people/amir.mimran/blog/2009/09/11/flash-components-for-visual-composer-70--flexibility-is-the-name-of-the-game)
I can add them to the storyboard and connect the input fields. Only after I deploy the model the gauge meter shows up without the range colors and with the value 50. when I click on it, it changes to 0 but it never shows the value (10) I set in the storyboard.
The same goes with all the other BO flash components from the PDF
They seem fine in the storyboard and they look fine in the deployed model except no values/wrong values are visible and they doesn't do much at all.Press F5 again to reload the page.
-
Flash and XML help : (
Hi all
bit of a newbie, so probably quite easy if you know how:eek:
would anyone beable to help with sorting out an XML file, what I have is a tooltip that loads in via XML and exported from flash. the XML loads in 2 text fields, field and field2.
what I am trying to do is add a button also to the tooltip so that you can click and go to a url.
would anyone beable to help with this.
this is what I have in my XML file;
<?xml version="1.0" encoding="utf-8"?>
<data>
<image name="image 1" path="img/img1.jpg"
title="Food Fight"
text="Information here!" />
</data>
this loads in 2 text fields.
this is what I have in my AS;
var tooltip:ToolTip = new ToolTip();
//tooltip.buttonMode = false;
tooltip.field.text = titles;//loads tooltip 1
tooltip.field2.text = texts;//loads tool tip 2
holder.addChild(tooltip);
I thought I could do something like this but I seem to be getting errors
XML
<?xml version="1.0" encoding="utf-8"?>
<data>
<image name="image 1" path="img/img1.jpg"
title="Food Fight"
text="Information here!"
button="click to view/>
</data>
and in my AS
var tooltip:ToolTip = new ToolTip();
//tooltip.buttonMode = false;
tooltip.field.text = titles;//loads tooltip 1
tooltip.field2.text = texts;//loads tool tip 2
tooltip.field3.text = buttons;//loads tool tip 3
holder.addChild(tooltip);
but just not working, what am I doing wrong:yikes:
many thanks for any help!hi Saransoft
thanks for that, thats great, yes it seesm to work I now have an extra text field with the menu that is the button, I have put my XML like this, is it correct
<image name="image 2" path="img/img2.jpg"
title="Jazz Time"
text="Information"
button="Click for URL" /> //NEW THAT I ADDED FOR THE BUTTON IS THIS CORRECT?
Now that I have another text for the button my final thing is getting it to be click able and go to a URL when you the text button is clicked. can I do this just in the XML file or is there also more to be added to the AS...aaaaaaaaaaaaarrrrrrrrghhhhh!!!!
many thanks for your help?? -
I have built an interface in Flash CS3 and now have the need
to port it over to Flex. I am trying to do it with as little
re-build as possible, so I need to port the Flash components over
with it. I exported a SWC with all of the components I am using,
and added it to the Library Path of an AS project.
The build gives me no errors, but I do get a #2007 at
runtime. The error seems to be stemming from a Yahoo ASTRA Flash
component, which was included in the SWC.
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/addChildAt()
at fl.controls::BaseButton/drawBackground()
at fl.controls::LabelButton/draw()
at fl.controls::Button/draw()
at
com.yahoo.astra.fl.controls.tabBarClasses::TabButton/draw()
at fl.core::UIComponent/drawNow()
at com.yahoo.astra.fl.controls::TabBar/drawButtons()
at com.yahoo.astra.fl.controls::TabBar/draw()
at fl.core::UIComponent/callLaterDispatcher()
I have been searching around the net, and the majority of
people are saying that this happens when the skins aren't included
(so you need to set them before the component is added to the
stage). I am using customized programmatic skins, for which the
source files are included in the build, and the styles get set
before the component is added to the stage (I actually replaced the
default ones in the class).
Does anyone have any other ideas as to how I could fix this?
PS - It is an ASTRA TabBar component that is giving me
issues. I know that Flex has a TabBar and TabNavigator, but I can't
find any documentation on how to use these from an AS project (no
MXML). I will simply rebuild using the native Flex controls if
necessary, and if possible, but would prefer to fix the issue as it
currently stands. (I might go back to Flash at some point, and
don't want to tie myself to a particular solution, considering I
can't use Flex components in Flash).
PPS - If you are wondering why I am porting to Flex right
now, especially if I am considering taking it back to Flash in the
future, it is because I have the need to begin building in
FlashPlayer 10 functionality, and the only way you can build to
FP10 right now (as its in beta) is with a nightly build of
Flex."rritchey" <[email protected]> wrote in
message
news:g8ua6d$qu6$[email protected]..
> bump: Was I not clear in my question? Or does no-one
know the answer?
You might want to try in the flexCoders Yahoo! group. -
How to cusomize in Flash: components User Interface Button?
Flash Componants> User Interface> Button
How to cusomize components?
The button works, but where is the code that is making it work?Connect recorded session on workig with flash components https://admin.adobe.acrobat.com/_a295153/p49752948/?launcher=false&fcsContent=true&pbMode= normal
Using the Button component http://www.adobe.com/devnet/flash/quickstart/button_component_as3/
Simple to modify the UI is to double click on the button and modify its skin in different states as per ur requirements -
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 ?
-
I have a completed project that now needs to be modified for mobile devices using Adobe Captivate 7. I need to remove all of the Flash components but am not sure how to identify them. Help?
From the Menu click Project/HTML5 tracker. It will list unsupported items.
Maybe you are looking for
-
At my education institution we own a number of iPads, around sixty. At present they have all been supervised by Apple Configurator and enrolled in Merkai. I have 15 of them set up with only one profile from Apple Configurator, which is for the wifi.
-
Hi, I bought my C7 last December and paid a lot of money for it !! as I had Nokia's previously I thought that I was doing a good investment. However, I was proven wrong ... the C7 is an excellent camera and looks amazing but that's all .. browser v
-
Report viewing for the settled costs
Hi friends, I have settled all costs on my WBSE to the AUC. Where do i see the report for this? Also after settling this to a Fixed Asset which report has to viewed? regards Pratap.V
-
Authorization check creating Work Orders (IW31)
Hello everyone, We need to make an authorization check when creating a Work Order in transaction IW31. That check is based on the field "Main work center for maintenance tasks" No check apart from the plant associated to the work center is done, but
-
I was wondering if someone has SD and MM documentation for BW. Please help. I am experienced in FI/CO and wanted to get some documentation on the above modules. Regards, David.