Professional :: Set The Bgcolor Attribute Value?
Jul 25, 2011The following doesn't work: But if you change setAttribute to ("width", "800"), it works with no problem! What am I missing? Is there an alternative to setAttribute method?
View 4 RepliesThe following doesn't work: But if you change setAttribute to ("width", "800"), it works with no problem! What am I missing? Is there an alternative to setAttribute method?
View 4 RepliesThe following doesn't work:
<!DOCTYPE HTML>
<title>Test</title>
<embed id="foo" src="http://www.w3schools.com/media/bookmark.swf" width="400" height="40" type="application/x-shockwave-flash" />
[Code]....
But if you change setAttribute to ("width", "800"), it works with no problem! What am I missing?
I have a .SWF email submit form. The background color is set via:
`<param name="bgcolor" value="#000000" />`
and in the embed:
`<embed src="FILE.swf" flashvars="STUFF" quality="high" **bgcolor="#000000"** width="260" height="32" name="WidgetMailBlack" align="middle" swLiveConnect="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />`
Is it possible either on mouse over of the Object or a containing div to change those values? i.e.
I want to change the bgColor of a button using as3. How can i do this?
View 1 Replieshow to add a bgcolor param to a dynamic SWFObject?
I am thinking that by adding a bgcolor to my SWF or making the wmode transparent, that it will get rid of the ugly "white box" that happens when my SWF first loads before the animation starts. Do not think it is necessary to have a preloader. Previously the animation was embedded using Object Embed code and no flash happened.
How do I make it so a visitor to a Flash site can change the background, maybe from entering color codes or selecting colored buttons? I mean the entire background of the screen, the one defined in the <body> tag.
View 2 RepliesI am having trouble parsing some xml that has a few attribute names with : characters in them. The compiler is not throwing any errors and when I trace my complete xml object out it is all there, however when I try to trace out any element or node it keeps comming up undefined. I removed the attribute names with : characters in them and everything works fine. I cant seem to target the attributes either to delete them.
View 3 RepliesI know I can use the XMLdocument class and go back tothe old way of doing thinsg. So I have an AS3 Air app which is successfully reading and writing to an XML file. Now I want to replace an attribute or an entire node if that's easier but I can't figure out how to target it. So the XML starts with an empty node:
[code]....
What I want to know is how to target the status node (or any other node for that matter) so that I can replace it or it's attribute. So, let's say I have a bunch of these guest nodes and I want to change the status for the first one, how do I do that using the new syntax.
Is there a way to access the d:userLabel attribute in Flash Builder? I want to use a number of different files created from Illustrator -> Catalyst -> Flash Builder
Looks like this:
<fx:DesignLayer d:id="2" d:userLabel="A1">
<s:Rect d:userLabel="R_1" x="150" y="200" width="500" height="300" ai:knockout="0">
<s:fill><s:SolidColor color="0xffffff"/></s:fill></s:Rect>
<s:Rect d:userLabel="R_2" x="150" y="200" width="80" height="60" ai:knockout="0" >
</s:Rect>... </fx:DesignLayer>
Now the question:
Can I access the "userLabel" with a scriptfunction? Something similar to getElementByID? I want to change for example the fillcolor of a rect or path with that function. Because I have no id here I can't do something like:
R_1.fill = blue
And I don't want to manually change the files from Illustrator.
I can't compile my .ipa with the iPhone attribute in the app.xml file. I don't know what I'm doing wrong but I'm pretty sure I followed the format correctly
[code]...
I thought I followed the instructions to T, but maybe someone else can identify the problem?
while i'm publishing iOS app from Flash, i get that thing
Unexpected or unknown element or attribute in the application descriptor file.
/Users/stockingem/Documents/DWP/1-app.xml(44): error 103: application.version is an unexpected element/attribute
application.version is an unexpected element/attribute
I have been trying to figure out how you could add in custom attribute tags that flash can recover.
EX:
<param name = "movie" value = "somefile.swf">
<embed src = "somefile.swf" width = "550" height = "400">
Except, that I would like to add a Custom tag, like "randNum" so that the tag user could input some number, or rather, a flash movie could generate a tag with a number already put in...Basically, heres a really basic version of the idea.There is a Flash Movie.In the movie, you can input text into a textfield.Upon finishing your message, you click a button "save".
The flash movie then:
1. Comes up with a random number unique to the message.
2. Assigns that number to a variable... "randNum".
3. Saves message as a xml file to the server as "filename" + randNum.
4. Outputs into a textfield a generated HTML tag that a user can post on myspace and such so that it will load in the flash movie.
Except... in the tag, there will be a custom attribute. If the random number variable "randNum" was 00112233, the custom attribute will be 00112233.
EX:
<embed src = "somefile.swf" width = "550" height = "400" randNum = "00112233">
So when the movie opens, it retrieves that randNum from the tag and can use it inside flash. How can this be done? Sorry this post was so long, but I wanted everyone to understand the concept.
I am on AS2.0, CS4:i am trying to extract the following data from the XML attribute:[code]i tried to load the xml attributes into the two separate dinamic text fields:[code]
View 8 RepliesI am trying to get the value of an attribute full where another attribute name is equal to something e.target.name.
So in this case I am trying to get the value of "full"
var full_url = myXML.item.@full.(@name=="e.target.name");
This is my XML:
<item name="Toy Box" thumb="resize/thumb_image2.png" full="full_images/image2.png" />
<item name="Toy Train" thumb="resize/thumb_image3.png" full="full_images/image3.png" / >
<item name="Toy Truck" thumb="resize/thumb_image4.png" full="full_images/image4.png" />
So my as above should return one of the But when I trace full_url I get nothing and no errors.
I have this XML
<language lang = "ru">
<ru>language/ru.xml</ru>
<ua>language/uk.xml</ua>
[code]......
I have some xml that is full of attributes. Without much detail, i would like to translate the xml into objects. However , i need a method that can get the attribute values AND names. Getting the value is a no brainer, but the names are not coming so easy. For example, the following will translate and xml node into an object with a prop and value of the same[code]...
View 1 RepliesI need to be able to dynamically get the name of an attribute in AS3. So for example:
Code: Select all<setup<animation speed=".5" />
<animation transition="saturation" />
<animation easetype="linear" />
<animation clickthrough="true" />
[Code]...
I'm updating an old AS2 project and have a question about XML. This thing I'm working on uses two xml files, pics.xml and lang.xml. The last one of the two contains translations for the flash file and looks like this:
PHP Code:
<lang> <trans lang="sv"> <nextPic>N�sta bild</nextPic> <prevPic>F�reg�ende bild</prevPic> <showMap>Visa karta</showMap> </trans> <trans lang="en"> <nextPic>Next picture</nextPic> <prevPic>Previous picture</prevPic> <showMap>Show Map</showMap> </trans></lang>
and in the pics.xml you choose what language to display by setting an xml attribute to either "sv" or "en".My question is, how do I tell the function that parses lang.xml to only parse the node with the right language. If "sv" is set in pics.xml I only want to parse the first bit om lang.xml there, you se what I mean? I don't what to use something like: this.firstChild.childNodes[0].blahblah cos most likely the users of this will ad more languages...
I wanted to ask that what is the method to trace the attribute in the xml file. I am trying a code but its saying undifined. The xml file looks like
[Code]...
i have some xml that is full of attributes. Without much detail, i would like to translate the xml into objects. However , i need a method that can get the attribute values AND names. Getting the value is a no brainer, but the names are not coming so easy. For example, the following will translate and xml node into an object with a prop and value of the same:[code]in trying this with attributes, i need to first find a way to get the attribute name.
View 6 RepliesHow to add Custom attribute recusrivly. With sequence order.[code]
View 2 RepliesHow do you set a variable attribute of a xml element?This is what I expected to work:xmlElement.attribute(variableAttr) = "the variable attribute is set to this string";
However, I'm getting some error that this value can only be retrieved as a reference and not set.Ofcourse, the following does not work either as it will look for the attribute named "variableAttr" and not for the attribute named after the value of the variable variableAttr:
xmlElement.@variableAttr = "example";
Here is the xml file
<glossary>
<alphabet id="A">
<term heading= "Anchor" definition="A mechanical device that prevents a vessel from
[code]......
i have XMl like
<record id="1" name="CustomerInfo">
<field name="id" index="1" type="String"/>
</record>
[code].....
I have this variable in Model class:[code]I've used BindingUtils to get notified when the XML changes:[code]Function onChange gets triggered when I assign an XML to the variable, but not when I change some attribute of the XML: Model.getInstance().someXml.@attr = "newValue";
View 1 Repliesvery simple question, i have this: (only a part of the complete rss file)
[Code]...
Not sure how I would check to see if the value of a nodes attribute "action" is equal to "left". My XML looks like the following:
<track timestamp="18/05/2011 13:21:49-0400" id="3" action="track">
<coordinates> test 1</coordinates>
</track>
[code]......
I wish to extract an attribute from an XMLList and assign it to a string. Here is the snippet of the XML
<node>
<sport GAME="Squash" TIME1="2" TIME2="3" TIME3="8"/>
<sport GAME="Table Tennis" TIME1="4" TIME2="6" TIME3="7"/>
</node>
I have two variables. One variable will contain the game type, either Squash or Table Tennis. The other will contain one of the following strings "TIME1", "TIME2" or "TIME3". The variables are called game and time. I have tried many variations on the code below to get the needed attribute but with no joy.
var result:String = node.sport.(@GAME == game).(attribute(time));
I'm having trouble getting a specific attribute my xml. Is there an easy way to say if the attribute value = 1234 then return its nodevalue
myXML = new XML();
myXML.load("sample.xml");
myXML.ignoreWhite = true;
myXML.onLoad=feeds;
[code]....
Anyone know if its possible ?
so I want the equivalent of
<a href='large_map.php' rel='ibox&fullscreen=true' >
Id rather not use a js call if I dont have to.