Simple to symbol
is there a simple method of "precomposing" whole timelines
into symbol? It seem there should be a less combersome way than
creating a new symbol and then copy and paste all the keyframes
from a timeline to the symbol.
unfortunately no.
--> **Adobe Certified Expert**
--> www.mudbubble.com
--> www.keyframer.com
arkaynyc wrote:
> is there a simple method of "precomposing" whole
timelines into symbol? It
> seem there should be a less combersome way than creating
a new symbol and then
> copy and paste all the keyframes from a timeline to the
symbol.
>
Similar Messages
-
Adding a trademark symbol in xml flash menu
Hi, I am a front end web designer/developer and
analyst...struggling with putting an accordian flash xml menu
together. I have it done except I need to add a simple trademark
symbol circle with r. I am struggling with how to do this since I
am not savvy in actioncript. I assume the best way is to add it is
with a CDATA child node, but do not know how or whatever is the
best way to get this done since am on a tight deadline. I need
someone to explain step by step what I have to do to get this
simple addition resolved. Attached are the links to home page and
code for the xml file. The left navigation is the asset that I need
to add the trademark symbol under about, about ADHERE. Thanks so
much in advance!!!!!!
index
pageOkay, test files are up in the following directory:
www.saffronthread.com/test
You can guess which ones are for you. I didn't deal with the
whole IE stupidness, so you my need to click on the page. But I've
got several different text fields some runtime some author
environment and sample text. Works for me on Mac and on the PC I
checked. Let me know what you find out.
As for System.useCodePage it is very seldom an actual
solution to the problem. It is a solution for when you want to be
sure that the user's Flash Plugin uses the computer's code page for
text rendering. Read the help entry for it and you will see that it
is not a solution for making sure that the most people possible
will correctly receive my text. It is more a solution for, I want
to make sure that those with Chinese operating systems are able to
correctly see the Chinese text I have encode with my special
encoding.
Most questions that get a "Oh, you must use
System.useCodePage answer" are more like, "I want to make sure that
everybody on every type of system can see my special characters."
The answer for that tends toward proper use of UTF-8 and that is my
guess for your problem. That your XML file is not being saved as
UTF-8. If System.useCodePage is helping you that tells me that your
XML editor is saving to some odd (maybe very popular, but not
UTF-8) encoding. -
In symbol instance's .click code, refer to self?
In the .click code of a symbol instance, how do I refer to self (the symbol instance)? Surely I don't have to give the name of myself; that would be redundant. I want non-coding colleagues to be able to replicate the symbol with no particular naming scheme and with no change in the code of each.
I have many instances on the stage. Each contains two div's and the second div contains an image called "checkmark_outlined2". I'm not using timelines, just setting properties in code.
Pseudo-code of what I want to do is simple:
when symbol instance receives a click
set the opacity of my image to 0 // only my image, not those of other instances of the same symbol
set my overall opacity to 0.5 // same here
If I understand right, sym in this context still refers to the stage rather than the symbol instanceDear bdggr
i looked your project and i saw you used a very complicated codes for very siimple actions !! and also that much complicating codes will need much more lines and will increasing the size of project ...
i recreate your project with very simple actions in just 15 Lines, Here is the link : http://www.mediafire.com/?8xbn8r5hted29ax
Some Notice :
1 - if you create a symbol in Edge, Do NOT Copy/Paste it, cause it will duplicate that symbol and you cant have access to it seperately, ad any changes to one of them would change all others
Solution : its better to recreate a new symbol again ( it just take very very very little space like a bit )
2 - if you using a eclipse inside a Symbol its better to create a Rectangle as Area ( thats what i did in the Project ) and change the opacity to 0, and this Rectangle will work as an mouse area, without it mouse over will find a problem and your action will not work as expect
if you had any problem, let me know, i will help you
Zaxist -
CS6: Symbol 9-slice scaling question
I hope someone can help me with the 9-slice scaling of a symbol. I have a simple frame symbol:
I want to stretch the symbol vertically while protecting the curved corners. I experimented with the 9-slice scaling feature, but I haven't hit upon the right positioning of the guides.
I fail every time I try to scale the symbol with the corners protected. I know I am doing something wrong, but can't figure out what!
(By the way, the forum software was doing strange stuff when I authored this post. The images kept appearing at the beginning of the post and not where I inserted them, and the first part of my first sentence kept disappearing. I re-typed it 3 times and hope the final post appears like I want it to. I can't find a preview function.)Thank you, Monika! Your question led me to the solution! The original artwork was a glyph from a font that I had purchased. I simply dragged the glyph to the symbol palette. I've done this often with fonts that I only needed to re-size as a whole, so I didn't realize that the kind of source object would affect the ability to use the 9-slice scaling on the symbol.
Creating an outline of the glyph (TYPE - CREATE OUTLINE) before dragging it to the Symbols Palette solved the problem! -
Engraving the symbol: on ipod
Hi,
I am purchasing a new ipod 30gb and would like to have it engraved.
I would like to have this symbol as part of the engraving: ♥. It is a simple text symbol copied and pasted.
I have tried it on the engraving section and it does appear on the preview suggesting that you should be able to engrave it.
However I am slightly worried that it may not appear correctly when I recieve the ipod.
So I was wondering if anyone has any experience or information about engraving the symbol?
Or an e-mail address which I could use to contact apple about the issue. I have searched this site and the internet but with no luck!
I wasn't quite sure where to post this but any help would be much appreciated! Thank you.just found out you can't do it unfortunately!
-
Newbie, Please help, How do I add CDATA to exsting xml flash asset
Hi, I am a front end web designer/developer and
analyst...struggling with putting an accordian flash xml menu
together. I have it done except I need to add a simple trademark
symbol circle with r. I am struggling with how to do this since I
am not savvy in actioncript. I assume the best way is to add it is
with a CDATA child node, but do not know how or whatever is the
best way to get this done since am on a tight deadline. I need
someone to explain step by step what I have to do to get this
simple addition resolved. Attached are the links to home page and
code for the xml file. The left navigation is the asset that I need
to add the trademark symbol under about, about ADHERE. Thanks so
much in advance!!!!!!
[URL=http://www.nodcreative.com/natrecor_sliced/natrecor_index.html]index
page with flash xml menu asset[/URL]
xml code:
<?xml version="1.0" encoding="UTF-8"?>
<accodion>
<item name="HOME">
</item>
<item name="ABOUT">
<item name= "ABOUT
ADHERE<![CDATA[write]]>"></item>
<item name="Medical Information" url="
http://www.jnj.com?ref=Random">
</item>
<item name="About SCIOS" url="
http://www.jnj.com?ref=Random">
</item>
</item>
<item name="INTERACTIVE DOSING INFORMATION">
<item name="Indications and Usage" url="
http://www.jnj.com?ref=Random"></item>
<item name="Contraindications" url="
http://www.jnj.com?ref=Random"></item>
<item name="Warnings" url="
http://www.jnj.com?ref=Random"></item>
<item name="Dosage and Administration" url="
http://www.jnj.com?ref=Random"></item>
</item>
<item name="RESOURCES AND TOOLS">
<item name="NATRECOR PI" url="
http://www.jnj.com?ref=Random"></item>
<item name="About Heart Failure" url="
http://www.jnj.com?ref=Random"></item>
<item name="Stages of Heart Failure" url="
http://www.jnj.com?ref=Random"></item>
<item name="NATRECOR Dosing Information" url="
http://www.jnj.com?ref=Random"></item>
<item name="Patient Management Resources" url="
http://www.jnj.com?ref=Random"></item>
</item>
<item name="US PRESCRIBING INFORMATION">
</item>
<item name="IMPORTANT SAFETY INFORMATION
ref=http://www.jnj.com">
</item>
<item name="REGISTRATION ref=http://www.jnj.com">
</item>
</accodion>
FLASH actionscript is as follows:
// The accordion
var accordion = this
// The item list
var itemList = []
// SETTINGS
//-------------PROPERTIES----------------
// Separation between the buttons
var separation = 1.5
// Tabulation between the buttons and the margin
var tabulation = 10
// if true, it cant be more than one items opened at the same
time (only for the first buttons, POWERFUL, MENU ,ACCORDION, ets).
var autoClose = true
// if true, it cant be more than one subItems opened at the
same time.
var subItemAutoClose = true
// if true, open and close all the subItems at the same time.
var openAll = false
// The height of the button
var itemHeight = 21
// The width of the button
var itemWidth = 230
// If true, show the light over the button
var light = true
// The ease of the menu opening
var openEase = 2.5
// The ease of the menu closing
var closeEase = 2.5
// The rollOut color fade speed
var rollOutFade = 8
//-------------COLORS----------------
// The color of the button
var buttonColor = 0xa
// The roll over color
var rollOverColor = 0xCCCCCC
// The arrow color
var arrowColor = 0xCCCCCC
// The arrow color on roll over
var rollOverArrowColor = 0x000000
// The text color
var TextColor = 0xFFFFFF
// The text color on roll over
var rollOverText = 0x000000
// LOADING XML
// The xml data
var xmlSource:XML = new XML
// Loading the xml
xmlSource.onLoad = function(success:Boolean):Void {
// When the load finishs...
if (success) {
// The first node of the xml
xmlRoot = xmlSource.firstChild
// The item nodes
xmlItems = xmlRoot.childNodes
// The total of items
total = xmlItems.length
// Creating the buttons
for (i=0; i<total; i++){
// Attaching the buttons
accordion.attachMovie("item", "item" + i, i)
// The button reference
itemList
= accordion["item"+i]
// The first node of the item node
itemList.xmlRoot = xmlItems
// The separation between subitems
itemList.separation = separation
// Tabulation between the subitems and the margin
itemList
.tabulation = tabulation
// subItems auto close
itemList.subItemAutoClose = subItemAutoClose
// The subitems height
itemList
.itemHeight = itemHeight
// The subitems width
itemList.itemWidth = itemWidth
// shows/hides the subitems light
itemList
.light = light
// The subitems color
itemList.buttonColor = buttonColor
// The roll over color
itemList
.rollOverColor = rollOverColor
// The arrow color
itemList.arrowColor = arrowColor
// the arrow color on roll over
itemList
.rollOverArrowColor = rollOverArrowColor
// The text color
itemList.TextColor = TextColor
// The roll over text color
itemList
.rollOverText = rollOverText
// the opening easing
itemList.openEase = openEase
// The closing easing
itemList
.closeEase = closeEase
// The roll over fade speed
itemList.rollOutFade = rollOutFade
// open all
itemList
.openAll = openAll
// ignore white
xmlSource.ignoreWhite = true;
// Loads the .xml file
xmlSource.load("accordion.xml");
// Aligning the items each one below the other
this.onEnterFrame=function(){
// Does the align to ALL the items
for (i=1; i<total; i++){
// Aligning the items
itemList._y = itemList[i-1]._y +
itemList[i-1].mask._height + itemList[i-1].button._height +
separation
// The cursor position
cursor._x = _xmouse
cursor._y = _ymouse
// Opens the items
onMouseDown = function (){
// Does this to all the buttons
for (i=0; i<total; i++){
// If is clicked
if (itemList
.button.hitTest(cursor)){
// Shows the current item
showCurrent(itemList)
// Shows the button clicked
showCurrent=function(current){
// Does this to all the buttons
for (i=0; i<total; i++){
// Does this to all the buttons exept the clicked
if (itemList
!=current){
// Close the other items if autoclose = true
if (autoClose){
// Close the other items
itemList.openBox=false
// fades the roll over effect of the other items
itemList
.over = false
//Does this to the clcked item only
} else {
// If it has sub items
if (total>0){
//Hides them if its open
if (itemList.openBox){
itemList
.openBox=false
//Shows them if its closed
} else {
itemList.openBox=true
// If it has no subitems goes to the link
} else {
getURL(xmlRoot.attributes.url, _self)Please don't cross-post in multiple forums. I have answered
this in your other thread. -
How can I animate my sprite to run on scroll and stop when scrolling stops?
I appreciate everyones help so far.
I want my illustration of a man to "walk" through my composition as the user scrolls through it.
I have a sprite created and have made it loop. What sort of code do I need to write to get it to move only on scroll and stop off scroll?
Thank you guys so much!
JohnathanHi,
Thank you for your post.
Please check the following tutorials for scrolling effects in edge animate.
http://www.heathrowe.com/adobe-edge-animate-simple-scrollbar-symbols/
http://www.adobe.com/inspire/2014/01/parallax-edge-animate.html
Regards,
Devendra -
Using Multiple External HDs for your iTunes content with one Library
Hello everyone so I have used this little trick a lot in the last few months and I thought I would share it.
I am using two 250 GB external HDs for all my iTunes files. Plus the Music on my internal HD
In order to have iTunes manage my content and store it in separate locations i.e. some on the internal HD in my MacBook and some on the external HDs at home. I had to convince iTunes that it really was all in one spot. How do you do this you ask well it is simple. Symbolic Links.
Linux has a great feature that allows you to link any two directories. Since Linux is the core of OS X a simple drag and drop of files and one Terminal command and you are on your way to separate locations for all your files and iTunes thinking it is all in the "iTunes Music" folder.
The command is as follows
ls -s "the directory where the files are" ./
this command must be run in terminal from the original location of the files after you have moved them to the trash. DO NOT EMPTY THE TRASH until you have verified that the link works or your files are safe on the external.
Below is the system that I use.
The original location of my TV Shows is my external HD labeled "iTunes Media"
The New location for my TV Shows is my second external HD labeled "iTunes TV Shows"
1. Drag and Drop the folders to the new location.
2. Move the files from the original location to the Trash.
In the Terminal window
3. cd /Volumes/iTunes\ Media/TV\ Shows/ (this is the original location for my TV Show directories)
4. ln -s /Volumes/iTunes\ TV\ Shows/"name of the show" ./
5. in iTunes I play one of the files just to make sure the link worked. It is really just a test on the first one I do not do this often but you should test a few just to make sure.
If someone needs help please email me. [email protected]
If this in not clear enough let me know and I will try and explain it better.No answer needed Just information for the masses.
-
Calculating Position of Rectangle Corners
Hello again everyone - I'm in the middle of attempting to write my own collision detection algorithm because the built in 'hitTestObject' function seems to be incredibly inaccurate (it's registering 'hits' when the objects are still a considerable distance from each other).
I need to be able to calculate the position of each of the 4 corners of a rectangle, based on its rotation. Obviously one of the corners will simply be the rectangle's x and y coordinates. I have made a little test program to make sure I am calculating the positions of the corners accurately - it works when the rectangle is rotated to 0, 90, 180 and 270 degrees, but produces strange results for any other angles...
I have attached the program at the bottom, but here is the code:
package
import flash.display.MovieClip;
import flash.geom.Point;
public class CornerFinder extends MovieClip
//vars
var myRect:MovieClip;
//constructor
public function CornerFinder():void
myRect = new MyRectangle();
myRect.x = stage.stageWidth/2;
myRect.y = stage.stageHeight/2;
myRect.rotationZ = 270;
addChild(myRect);
AddCornerMarkers();
private function AddCornerMarkers():void
//The rotation of the rectangle in radians
var rectRotation = myRect.rotationZ*(Math.PI/180);
var corners:Array = new Array();
corners[0] = new Point(myRect.x, myRect.y);
corners[1] = new Point( (myRect.x + myRect.width * Math.cos(-rectRotation)), (myRect.y + myRect.height*Math.sin((rectRotation) )) );
corners[2] = new Point( (myRect.x + myRect.width * Math.sin(-rectRotation)), (myRect.y + myRect.height*Math.cos((rectRotation) )) );
corners[3] = new Point(corners[2].x + (corners[1].x - corners[0].x) , corners[2].y + (corners[1].y - corners[0].y));
for(var i:uint = 0; i < corners.length; i++)
var marker:MovieClip = new CornerMarker();
marker.x = corners[i].x - marker.width/2;
marker.y = corners[i].y - marker.height/2;
trace("Adding marker at: " + marker.x + ", " + marker.y);
addChild(marker);
MyRectangle, as you may have guessed is a simple rectangular symbol that is in the library of my fla file. The CornerMarker is just a red circle symbol.
Can anyone see what the problem is? I thought if it worked for the 'main' angles (e.g. 0, 90, 180, etc) it would work for everything in between, but apparently not...you misunderstand.
try:
package
import flash.display.MovieClip;
import flash.geom.Point;
public class CornerFinder extends MovieClip
//vars
var myRect:MovieClip;
//constructor
public function CornerFinder():void
myRect = new MyRectangle();
myRect.x = stage.stageWidth/2;
myRect.y = stage.stageHeight/2;
myRect.rotationZ = 270;
addChild(myRect);
AddCornerMarkers();
private function AddCornerMarkers():void
//The rotation of the rectangle in radians
var rectRotation = myRect.rotationZ*(Math.PI/180);
var corners:Array = new Array();
myRect.rotationZ=0;
corners[0] = new Point(myRect.x, myRect.y);
corners[1] = new Point( (myRect.x + myRect.width *
Math.cos(rectRotation)), (myRect.y +
myRect.width*Math.sin((rectRotation) )) );
// corners[2] = new Point( (myRect.x + myRect.width * Math.sin(-rectRotation)), (myRect.y + myRect.height*Math.cos((rectRotation) )) );
// corners[3] = new Point(corners[2].x + (corners[1].x - corners[0].x) , corners[2].y + (corners[1].y - corners[0].y));
myRect.rotationZ=rectRotation*180/Math.PI;
for(var i:uint = 0; i < corners.length; i++)
var marker:MovieClip = new CornerMarker();
marker.x = corners[i].x - marker.width/2;
marker.y = corners[i].y - marker.height/2;
trace("Adding marker at: " + marker.x + ", " + marker.y);
addChild(marker); -
Hi,
I can't figure out how to make a simple copyright symbol. I looked and looked for the Keyboard Viewer in the Preferences>International, but couldn't find it, or anything like it.
I just want something like Key Caps.
Thanks,
Allan
PS BTW I'm again having that problem of the message posting when I press Return. I've edited this post 4 times.Hi Allan
I have not experienced a loss of keyboard Viewer myself, but the following link to the subject by Giorgio Piras, may allow you to recover it.
Missing character palette or keyboard viewer
The path given applies to 10.3 as well, so it may work for you too.
The behaviour of "Show Input mode palette" seems normal. That is what is does on my machine as well, which as you have noticed does not do anything. It seems to be merely an alternative to going to the menu bar if you have more than one language to choose to run. -
Can I create subforms dynamically?
Hello,
I need to develop a interactive form, wherein user enters the data, its as below,
As we saw the requirement is as below,
1) Place a push button on the form, here its just simple a + symbol
2) When user clicks it as a 1st time, a new subform / set of fields need to be added / visible to the form so that user will enter his/her 1st kid details
3) If user clicks 2nd time, then, a new 2nd subform / set of fields need to be added / visible to the user under the 1st kid details section
like that same, user can add upto 20 instances / kids details / subforms, I mean, its dynamic, user may enter zero / nothing or 3 or 5 or 10 or 20, not sure, max. limit is 20
Pls. let us know
1) is it possible?
2) If so, by chance do you know any white paper, demo, tutorial, article, sample in this perspective so atht I wil go thru it and develop?
3) Any suggestions pls.?
Thank yyouThank you.
Pls. I want to make sure that you got my point, here in my case,
1) When user opens the form 1st time, the 'Kids details' subform/boxes should not show up UNTIL UNLESS user clicks the + symbol
How many clicks on + symbol = that many subforms / kids boxes, I mean, subforms should create / show up dynamically
2) Sure, I will go thru the Adobe manula, but, by chance do you know any demo on the web -
3 Tier Relational DB's and Dynamic Tables
I have three tables which I shall, for ease, call A, B and C.
B is relational to A
C is relational to B
A1 - B1 - C1
C2
B2 - C3
C4
A2
A3 - B3 - C5
B4
B5 - C6
C7
C8
I have no trouble creating recordset links for one or the
other
SELECT A.*, B.*
FROM A INNER JOIN B ON A.AID = B.BAID
WHERE etc... etc......
Similarly, I can create a recordset for the secondary link..
SELECT B.*, C.*
FROM B INNER JOIN C ON B.BID = C.CBID
WHERE etc... etc......
What I am trying to acheive however is a recordset with a 3
tier relationship and I can't figure the syntax.
Somthing like...
SELECT A.*, B.*, C.*
FROM A INNER JOIN B ON A.AID = B.BAID, B INNER JOIN C ON
B.AID = C.BAID
WHERE etc... etc...... (This doesn't work!)
This would then result in a dynamic table with (B and C) in
the same row as it propogates.
Eventually, what I want to achieve is a simple attachment
symbol on each row of B, based on something like....
<?php if (C,TotalRecords <> NULL) { ?>
<a href="/linkedattachments.php?BID=<?php echo
$row_recordsetB['BID']; ?>" target="_blank">
<img src="fileicon.gif" alt="Click to see
attachments"></a>
<?php } ?>
Am I going about this the right way? Is this even clear?
lol"RichardODreamweaver" <[email protected]>
wrote in message
news:[email protected]...
> I have three tables which I shall, for ease, call A, B
and C.
>
> B is relational to A
>
> C is relational to B
>
> A1 - B1 - C1
> C2
> B2 - C3
> C4
> A2
> A3 - B3 - C5
> B4
> B5 - C6
> C7
> C8
>
>
> I have no trouble creating recordset links for one or
the other
>
> SELECT A.*, B.*
> FROM A INNER JOIN B ON A.AID = B.BAID
> WHERE etc... etc......
>
> Similarly, I can create a recordset for the secondary
link..
>
> SELECT B.*, C.*
> FROM B INNER JOIN C ON B.BID = C.CBID
> WHERE etc... etc......
>
> What I am trying to acheive however is a recordset with
a 3 tier
> relationship
> and I can't figure the syntax.
>
> Somthing like...
>
> SELECT A.*, B.*, C.*
> FROM A INNER JOIN B ON A.AID = B.BAID, B INNER JOIN C ON
B.AID = C.BAID
> WHERE etc... etc...... (This doesn't work!)
that's almost right
SELECT A.*, B.*, C.*
FROM ((A INNER JOIN B ON A.AID = B.BAID) INNER JOIN C ON
B.AID = C.BAID)
WHERE etc... etc......
I've added parentheses to show how the next join will operate
on the first,
the first join results in a relation of table a and b,
you then join this "virtual table" to the third.
> This would then result in a dynamic table with (B and C)
in the same row
> as it
> propogates.
>
> Eventually, what I want to achieve is a simple
attachment symbol on each
> row
> of B, based on something like....
For the count to work with records that have no children you
have to employ
a LEFT join to return records from the RIGHT table even if no
record on the
LEFT side matches.
SELECT A.*, B.*, COUNT(c.CAID) AS CAID_COUNT
FROM ((A INNER JOIN B ON A.AID = B.BAID) LEFT JOIN C ON B.AID
= C.BAID)
WHERE etc... etc......
> <?php if (C,TotalRecords <> NULL) { ?>
> <a href="/linkedattachments.php?BID=<?php echo
$row_recordsetB['BID']; ?>"
> target="_blank">
> <img src="fileicon.gif" alt="Click to see
attachments"></a>
> <?php } ?>
>
> Am I going about this the right way? Is this even clear?
lol
> -
Adding CDATA to an existing xml and flash asset
Hi, I am a front end web designer/developer and
analyst...struggling with putting an accordian flash xml menu
together. I have it done except I need to add a simple trademark
symbol circle with r. I am struggling with how to do this since I
am not savvy in actioncript. I assume the best way is to add it is
with a CDATA child node, but do not know how or whatever is the
best way to get this done since am on a tight deadline. I need
someone to explain step by step what I have to do to get this
simple addition resolved. Attached are the links to home page and
code for the xml file. The left navigation is the asset that I need
to add the trademark symbol under about, about ADHERE. Thanks so
much in advance!!!!!!
[URL=http://www.nodcreative.com/natrecor_sliced/natrecor_index.html]index
page with flash xml menu asset[/URL]
xml code:
<?xml version="1.0" encoding="UTF-8"?>
<accodion>
<item name="HOME">
</item>
<item name="ABOUT">
<item name= "ABOUT
ADHERE<![CDATA[write]]>"></item>
<item name="Medical Information" url="
http://www.jnj.com?ref=Random">
</item>
<item name="About SCIOS" url="
http://www.jnj.com?ref=Random">
</item>
</item>
<item name="INTERACTIVE DOSING INFORMATION">
<item name="Indications and Usage" url="
http://www.jnj.com?ref=Random"></item>
<item name="Contraindications" url="
http://www.jnj.com?ref=Random"></item>
<item name="Warnings" url="
http://www.jnj.com?ref=Random"></item>
<item name="Dosage and Administration" url="
http://www.jnj.com?ref=Random"></item>
</item>
<item name="RESOURCES AND TOOLS">
<item name="NATRECOR PI" url="
http://www.jnj.com?ref=Random"></item>
<item name="About Heart Failure" url="
http://www.jnj.com?ref=Random"></item>
<item name="Stages of Heart Failure" url="
http://www.jnj.com?ref=Random"></item>
<item name="NATRECOR Dosing Information" url="
http://www.jnj.com?ref=Random"></item>
<item name="Patient Management Resources" url="
http://www.jnj.com?ref=Random"></item>
</item>
<item name="US PRESCRIBING INFORMATION">
</item>
<item name="IMPORTANT SAFETY INFORMATION
ref=http://www.jnj.com">
</item>
<item name="REGISTRATION ref=http://www.jnj.com">
</item>
</accodion>
FLASH actionscript is as follows:
// The accordion
var accordion = this
// The item list
var itemList = []
// SETTINGS
//-------------PROPERTIES----------------
// Separation between the buttons
var separation = 1.5
// Tabulation between the buttons and the margin
var tabulation = 10
// if true, it cant be more than one items opened at the same
time (only for the first buttons, POWERFUL, MENU ,ACCORDION, ets).
var autoClose = true
// if true, it cant be more than one subItems opened at the
same time.
var subItemAutoClose = true
// if true, open and close all the subItems at the same time.
var openAll = false
// The height of the button
var itemHeight = 21
// The width of the button
var itemWidth = 230
// If true, show the light over the button
var light = true
// The ease of the menu opening
var openEase = 2.5
// The ease of the menu closing
var closeEase = 2.5
// The rollOut color fade speed
var rollOutFade = 8
//-------------COLORS----------------
// The color of the button
var buttonColor = 0xa
// The roll over color
var rollOverColor = 0xCCCCCC
// The arrow color
var arrowColor = 0xCCCCCC
// The arrow color on roll over
var rollOverArrowColor = 0x000000
// The text color
var TextColor = 0xFFFFFF
// The text color on roll over
var rollOverText = 0x000000
// LOADING XML
// The xml data
var xmlSource:XML = new XML
// Loading the xml
xmlSource.onLoad = function(success:Boolean):Void {
// When the load finishs...
if (success) {
// The first node of the xml
xmlRoot = xmlSource.firstChild
// The item nodes
xmlItems = xmlRoot.childNodes
// The total of items
total = xmlItems.length
// Creating the buttons
for (i=0; i<total; i++){
// Attaching the buttons
accordion.attachMovie("item", "item" + i, i)
// The button reference
itemList
= accordion["item"+i]
// The first node of the item node
itemList.xmlRoot = xmlItems
// The separation between subitems
itemList.separation = separation
// Tabulation between the subitems and the margin
itemList
.tabulation = tabulation
// subItems auto close
itemList.subItemAutoClose = subItemAutoClose
// The subitems height
itemList
.itemHeight = itemHeight
// The subitems width
itemList.itemWidth = itemWidth
// shows/hides the subitems light
itemList
.light = light
// The subitems color
itemList.buttonColor = buttonColor
// The roll over color
itemList
.rollOverColor = rollOverColor
// The arrow color
itemList.arrowColor = arrowColor
// the arrow color on roll over
itemList
.rollOverArrowColor = rollOverArrowColor
// The text color
itemList.TextColor = TextColor
// The roll over text color
itemList
.rollOverText = rollOverText
// the opening easing
itemList.openEase = openEase
// The closing easing
itemList
.closeEase = closeEase
// The roll over fade speed
itemList.rollOutFade = rollOutFade
// open all
itemList
.openAll = openAll
// ignore white
xmlSource.ignoreWhite = true;
// Loads the .xml file
xmlSource.load("accordion.xml");
// Aligning the items each one below the other
this.onEnterFrame=function(){
// Does the align to ALL the items
for (i=1; i<total; i++){
// Aligning the items
itemList._y = itemList[i-1]._y +
itemList[i-1].mask._height + itemList[i-1].button._height +
separation
// The cursor position
cursor._x = _xmouse
cursor._y = _ymouse
// Opens the items
onMouseDown = function (){
// Does this to all the buttons
for (i=0; i<total; i++){
// If is clicked
if (itemList
.button.hitTest(cursor)){
// Shows the current item
showCurrent(itemList)
// Shows the button clicked
showCurrent=function(current){
// Does this to all the buttons
for (i=0; i<total; i++){
// Does this to all the buttons exept the clicked
if (itemList
!=current){
// Close the other items if autoclose = true
if (autoClose){
// Close the other items
itemList.openBox=false
// fades the roll over effect of the other items
itemList
.over = false
//Does this to the clcked item only
} else {
// If it has sub items
if (total>0){
//Hides them if its open
if (itemList.openBox){
itemList
.openBox=false
//Shows them if its closed
} else {
itemList.openBox=true
// If it has no subitems goes to the link
} else {
getURL(xmlRoot.attributes.url, _self)Please don't cross-post in a bunch of forums. Also when
adding code to a post, please use the attach code button. That
keeps the formatting and makes it easier to read. Your code is far
too long and way to unformatted to really understand quickly.
I don't know why you would need a CDATA node to get the
registered symbol. If the XML file you are working with is saved as
unicode (UTF-8) the symbol should come across just fine. Just
putting the UTF-8 at the beginning doesn't tell whatever program
you are using to save as UTF-8!
Do you know how to make the registered symbol? On windows it
is ALT -0174 (use the keypad for those numbers).
Once you've got the symbol in your XML the next step is to
check if Flash is loading it correctly. When you are in the testing
environment go to the Debug menu and select List Variables. The
trace window will show all the variables -- and there are probably
a lot! Search/Find something close to the symbol and see if the
trace window shows the symbol correctly. If it does then Flash is
readying it correctly and if it isn't showing you have problems
with your textfield. If it isn't showing correctly then your XML
file isn't UTF-8.
If it is textfield problems I wouldn't know what to do since
it is inside a component. Post back with your findings. -
CS4 :: ReferenceError: Error #1065
Hi! I've just switched from cs3 to cs4, and I'm having a
quite annoing problem:
Suppose a simple blank new flash document.
Suppose a simple mc symbol in the library, say 'square', with
some actionscript, say a simple stop() command. No linkage.
The problem: as I put an instance of it on the stage, while
testing I get this error:
ReferenceError: Error #1065: Variable square_1 is not
defined.
It attaches the _1 to the symbol name and gives me that
error.
I've observed this: if I cut out the stop() command (or any
actionscript, I suppose), I don't get any error while testing.
I've also observed this: If I put a class identifier for the
square symbol, the problem disappears. Obviously, I definitely
don't want to put a class identifier for every symbol I use with
some little AS command inside..
Any idea? This appears for all the symbols with AS code
inside.
Since my Flash CS4 is an upgrade I have both flash CS3 (the
original licence) and flash CS4 installed on my Mac (iMac intel
core 2 duo, 2.4 Gh, 10.5.5). Could it be some cs3/cs4 conflict?i don't see that and i have both flash cs3 and cs4 intalled
on a pc. i do occassionally see compiler errors. to remedy, create
a new fla, copy your assets (in your situation one movieclip) to
the new fla and retest. -
I have been looking everywhere on how to code a contact form with as3
I wouldn't think it is such an uncommon thing, but I have been unable to find tutorials past flash 5, or as2, on how to code contact forms.
I have a simple movieclip symbol, with text fields, all with instance names, and need to find out how to pass the information from flash to a php
script. If anyone can help, or atleast point me towards a tutorial that uses something newer than flash 5 and newer than 2004, it would be awesome.Would any of these work?
http://www.webdesignmo.com/blog/2008/08/14/flash-contact-form-in-actionscript-3/
check this one first:
http://www.kirupa.com/forum/showthread.php?t=272898
http://www.edesignerz.net/flash/527--flash-cs3-as3-contact-form-with-php-parser-actionscri pt-3-video-tutorial
Hope this helps!
Maybe you are looking for
-
Problem when download IR to CSV format in Apex 4.1
Hi, I've an interactive report that using date variables in its query. In order this report to produce data, you must submit those variables otherwise it will show text 'no data found'. the report can be produced after those variable is submitted, an
-
HT4559 How I can update my iPad 2 Wirelessly
How I can update my I pad 2 wirelessly ?????
-
How to Pass Parameter a form to another form ?
Hi, I want to pass Parameter a form to another called form. What are the steps i want to do. Please guide me kanish Edited by: Kanish on Jul 21, 2010 11:38 PM
-
SAP FI: F107 valuation (for doubtful debts provision) will not post group currency? IN SAP, transaction F107 valuations, which executes valuation calculation for doubtful debt provision and then updates GL using background processing is only posting
-
Hi, I have a JOB which on normal Adobe Reader shows no issue. While flattening in Adobe Pro or while zooming in Illustrator, it shows some unexplained white lines / strips. This is seen on hard printed copy also. While Anti Aliasing is set to on in m