ActionScript 2.0 :: Change The Positioning Of The Titles?
Feb 13, 2009
On my website I have a few image viewers done completely with actionscript and xml files. I want the titles for my full images to appear above the image. Right now it appears on the image, and to compensate I have had to add white space above each image. [URL] how I can change the positioning of the titles?
View 0 Replies
Similar Posts:
Jun 10, 2010
[URL] i need to change the titles from english to spanish (Name, subject, message, submit and reset), i dont know which parts of the code i need to change.[URL]
View 2 Replies
Jul 12, 2011
I have a TabNavigator with custom skins on the buttons and inside the content. I want to put an image behind the individual Tabs. One long bar of about 20px high that runs the width of the control. The buttons and the navigator content are both spark components while the actual tab navigator control group is of type mx. The only property I can change is the background color. Is there a way I can just tell the background to position itself as top="-10" or something similar or do I need to go the CSS route?
View 1 Replies
Sep 28, 2011
Actionscript 3 and am trying to make sub-titles for my video based application.I have managed to get the English subtitles for the same. However, I was wondering as to how the same could be implemented for other languages which do not have same font as English words?
View 1 Replies
May 16, 2010
I have my XML file with only some sentences I wish to create a slideshow from.
Something really simple:
Sentence
_______________
V
V
V
Sentence (delay)
V
V
V
_______________
Sentence
I have loaded my xml like so:
Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
textim = [];
total = xmlNode.childNodes.length;
[Code] .....
I can access the titles using dynamic text fields but I don't know how to make it go sentence by sentence automatically (with the animation).
View 1 Replies
Oct 13, 2009
I made an xml video playlist with thumbs and video description within a scrollbar. Now I want to add 2 titles. one for my work as an editor and one for my work as a director. The first one will be on top of the list, the second one will be after the last video as an editor. There won't be any interactivity with those titles, it's just text.
Here's my code :
var thumb_width:Number;
var thumb_height:Number;
var thumbs_x:Number;
var thumbs_y:Number;
var video_x:Number;
[Code] .....
View 2 Replies
Sep 30, 2011
I've built a scrollable text field of alphabetical titles.I looking for actionscript that works something like anchor tags in HTML. (Or a simple way to do it).Even though it scrolls a - z, I also want the user of having the option of clicking on an alphabetical menu from above the text field and then the text field would jump to that letter of the alphabet.
View 0 Replies
Sep 17, 2008
I have just created an xml/flash mp3 player in flash 8 for a website that I am working on using Lee's excellent tutorial. Everything is working perfect except for the scrolling titles. His code had it so that the title would scroll across and then reverse back but it really didn't work with the titles of the songs I was using no matter how much I altered the code. I wanted the titles to scroll from right to left and then repeat over and over until the song ended or the person clicked on the next button. I have managed to get the titles to scroll once in one direction completely but then nothing else happens.
// Text scroller
var size:Number = 35;
var textPos:Number = 0;
[Code].....
View 2 Replies
Mar 30, 2010
IM trying to load an XML file with images and their descriptions and titles however when i attempt to trace the length of the XMLList, it displays as empty. heres the code.
[Code]...
View 5 Replies
Jun 22, 2010
I am trying to make a blog roll program that will put the titles of a client's blog on their homepage. i ran through a tutorial that got most of it working, but when i went to move from the tutorial to the client's program, i started running into some errors. since i have no idea what they mean, i can't even begin to figure out what is causing them.
[Code]...
View 1 Replies
Nov 23, 2011
I've got a catalog of events in XML that is read into my Flash swf. I'm trying to develop a search box that will search through the titles, descriptions, presenters, etc. and return a list of related events.
Does anybody know a prebuilt AS2 system that does this? Or a good tutorial on how to go about this? I have googled, but haven't found much.
Here is my approach so far. When I load in the XML I create an array of the frequency of all the words in the nodes that I'm interested in. I figured it would be useful to do this once instead of each time a search is performed. I store that word index in another array with an index that will take me back to the original node. I was trying to figure out if there was someway to put it all into one index, but then I'm not sure how I'd link back to the original nodes.
When performing a search I look through the array of word indexs and check for the word and return another array of which original nodes contain the word.
If the search term isn't represented I generate all the permutations of the word that have an edit distance of 1 -- i.e. that have a letter changed, added, or deleted in any position. So for example if the search is for "the" the list of 1-edit would be ahe, bhe, ... tae, tbe,... tha, thb...athe, bthe,...tahe,tbhe, ....... he, te, th. If any of those are found it returns the results and puts up a "Did you mean xxxxx?" type of notice.
So far all of this is working rather well.
I'm still working on figuring out what to do if the user puts two words into the search box.
Also haven't figured out what to do with plurals and other "stem" type situations.
I want to make this pretty simple and easy for people to get the results they want.
View 5 Replies
Feb 13, 2009
I'm looking to create something like the link below, [URL].. however I need it to work on both x and y,I've been trying for days to figure out a way to pull this off,
can anyone point me to a tutorial or an example of something along those lines?
View 5 Replies
Mar 9, 2009
I am trying to position my loader for an external swf. Can anyone help me. Here is the code that I currently have to load the swf. These are the positions that I need x=0, y=180.
Code:
stop();
var myLoader:Loader = new Loader();
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoadComplete);
function swfLoadComplete(loadEvent:Event)
[code]...
View 2 Replies
Jul 12, 2010
I'm using action script v2 to load a .jpg from a button.I'm using the command 'loadMovieNum("photo.jpg",4)'What script could I add in to resize the jpg to specific dimensions and position it at a particular x,y coordinate?
View 2 Replies
Aug 24, 2010
I need to create the attached jpg, but i'm not sure of the best way to tackle it. The news posts are loaded from XML and will vary in height so they need to somehow be sorted so that if one is going to come off the page, then it's put into the next page - where the user will click the scroll buttons to view.
1/ Load article from XML
2/ Create a postMC_0 and add article bits to it (date, title, body)
3/ Record height
4/ Create a newsColumn_0 and add postMC_0 to it
Then a loop:
5/ Load next article
6/ Create a postMC_1 and add article bits to it
7/ If difference between postMC_0 height and newsColumn_0 height is greater than the height of postMC_1, then add postMC_1 to newsColumn_0.
8/ If not, then create newsColumn_1 and add postMC_1 to it.
9/ Loop back to 5 (increasing the numbers each time, so postMC_2, etc) Then just make the scroll buttons function according to how many columns have been created..
View 21 Replies
Sep 8, 2010
This is the swf I'm trying to load. These actions load and position a small simple swf just fine and the trace in the onLoadProgress function indicates that it loads completely but I can't see it. What am I doing wrong?
[Code]...
View 12 Replies
Nov 28, 2011
I built an app in flash where you can rotate objects and save positions and rotation to xml.... that xml then feeds html to produce a layout that is then rendered the a pdf It seems that every time it goes to the html, a rotated object in positioned a little to the lower right then the position in flash.
I know the rotation in css in different, but I think if I can find the true top left of the rotated object in flash and pass that it will solve the issue.
I tried this
newx = imageHolder.parent.localToGlobal(new Point(imageHolder.x,0)).x;
newy = imageHolder.parent.localToGlobal(new Point(0,imageHolder.y)).y;
also this imageHolder.parent.globalToLocal(imageHolder.localToGlobal(imageHolder.getBounds(imageHolder).topLeft));
neither work. Is there something else?
View 1 Replies
Nov 27, 2010
I have been working on this to no avail. I would like to individually position different movie clips unto my flash site, yet it will only let me position one. Well.. more specifically it will perfectly position rock_mc, but transition_mc wont appear centered until I resize the screen manually. Is there any way I can fix this to have it appear in position from the beggining?
Code:
function init()
{
[code].....
View 1 Replies
Aug 24, 2011
I'm trying to make some mcs be displayed from alpha 0 to 100, one by one in the stage and in random positions. I've managed to make appear it randomly from alpha 0 to 100 with this code:
Code:
mcs = new Array("mc0", "mc1", "mc2", "mc3", "mc4", "mc5");
mc0._visible = mc1._visible = mc2._visible = mc3._visible =mc4._visible =mc5._visible = false;[code]....
The strange thing is that only some mcs are positioned randomly and others stay in the same position.
View 3 Replies
Feb 13, 2009
I'm looking to create something like the link below,
[URL]
However I need it to work on both x and y.
View 2 Replies
Mar 8, 2007
how would you go about positioning a MC in the top right hand corner - a few pixels. And How to get it to stay even on Resize? to get it to stay in that corner so it moves with the screen resize?
View 2 Replies
May 1, 2007
Here's my code:
Code:
for (var i = 0; i<nTotalPics; i++) {
main.createEmptyMovieClip( "container"+i, i );
var container:MovieClip = main["container"+i];
container.createEmptyMovieClip( "pic"+i, i );
[code]....
First, if I add "trace (pic._name);" inside the onLoadInit function it outputs "pic3,pic2,pic1,pic0". Why does it show up in reverse order of the for-loop?
Second, is the "pic:MovieClip" in "mclListener.onLoadInit = function(pic:MovieClip)" pointing to the "pic" in "mcl.loadClip( astrImages[i], pic );"? If not, what is it pointing to? If it is, can I add another variable after "pic" so that I can pass it inside the onLoadInit function? Ultimately what I would like to do is create a textfield under each pic.
View 1 Replies
Nov 20, 2008
I am using this actionscript to obtain full screen flash in AS2 but am having problems positioning mcs on the y axis (the x is no problem).
[Code]...
I am trying to get the mc "buttons" position in the top right of the browser window but I cant get the height value correct. When the width is used on its own it works perfectly.
View 2 Replies
Jan 16, 2009
I have five rectangle shaped movie clips....I need to change their _y position randomly by clciking a button..but there must be 10px space between them... so how do I modify the code to do it ?
PHP Code:
myArray = new Array(m1, m2, m3, m4, m5);for (i=0; i<=myArray.length; i++) {_root["m"+i]._x=400;_root["m"+i]._y=Math.floor(Math.random()*300)+20;}
View 6 Replies
Feb 1, 2009
i have seen websites with fullscreen .swf and i dont know what kind of script they used to have the movie clips positioned constantly i.e. 20px from right border of the screen while all people have different resolutions.
View 2 Replies
Aug 24, 2011
I'm trying to make some mcs appear to alpha 0 to 100, one at one in the stage and in random positions. I've managed to make appear it randomly from alpha 0 to 100 with this code:[code]The strange thing is that only some mcs are positioned randomly and others stay in the same position, but not always the same.
View 1 Replies
Apr 8, 2009
I have a movie clip named "footer" and another movieclip named "portf". I want footer to always be 20 pixels below movieclip portf. How can I do that.
View 7 Replies
Oct 28, 2009
I always run into the same bug concerning the x and y positioning of a Movie clip. When I try to get the X and Y values of a movie clip inside another movie clip, they aren't the same values (since I guess every MC has it's own x,y grid starting at point 0,0 where that MC is placed on the work area). How do I get the x and y values of a MC inside another MC when I want those values to be the same as the _root's x and y values? In other words: The movie clip that is inside the other one is moving on a simple guide path. I want to create "lasers" (or whatever) at its own coordinates every few seconds depending on where that moving MC is at when the shooting counter is up.
View 2 Replies
Sep 5, 2010
I'm trying to get the width and height of the stage to position my objects when the user resizes the window, but I can't figure out how.
I've Googled a lot and found some examples and my last try looks like this [code]...
View 4 Replies
Feb 2, 2009
I am writing a loop and want to position 25 boxes in a square. I can make 5 boxes appear in a line, but can't make 25 boxes appear in a square without writing 5 seperate loops (e.g. j, k, l, m, etc.). This seems long-handed, can I shorten the code? Here is the code I have used so far:
var box:Box;
for(var i:int = 0; i < 5; i++)
{
[Code].....
View 2 Replies