ActionScript 2.0 :: Changing Selectivity Of Dynamic Generated Link
Jan 7, 2004
When using the "textFormat.selectable = false", the text which I send to the freshly generated text field still is selectable. How to turn the selectivity of a dynamic generated link?
Note: .selectable is not documented in the property summary for the TextFormat object. But does turn blue in the editor.
View 2 Replies
Similar Posts:
Jul 20, 2009
I am new to Flash. I bought a template online a couple weeks ago, and for the most part have made all the changes to personalize the page. The page is for wedding videography, and came with a Videos section. However, I do not like the template video player, and would like to have the Videos link on the menu bar go straight to my youtube channel rather than to the flash player. Primarily all changes to the template have been made in a text.txt file, rather than the flash file itself. My question is, how could I change the link on the main page to route to my youtube channel? Here's what it looks like in the text file:
[Code]....
View 3 Replies
May 25, 2004
I have a few dynamic generated buttons, and I need on their action to change values in some dynamic generated textfields. The part of the code we're interested is this:
Code:
nr_rinduri = 20; // number caming from somewhere else
this["mc"+j].onRelease = function() {
num = Number(this._name.substring(2))+1;
nrInceput = (num-1)*nr_rinduri;
trace("NR inceput=" + nrInceput);
[Code] .....
So... : if I put codice0.text = ..., codice1.text = .... it's working, but when I am trying to do a this["codice"+contor].text = .... it's not working.... Is this because we are inside another this[] ... the one for the button and when I am referring to this["codice"+contor] the flash see that I want to do something at the button and not at the textfield...
View 5 Replies
Apr 16, 2007
Ive been using Flash since version 4, mainly just to draw and create Frame by Frame Animations. Only recently have found a need for dynamic applications.Ive been following the tutorial for the simple photo gallery/portfolio here.URL...Ive noticed that the way the buttons/thumbnails created in this example doesnt give me control over the way the buttons themselves behave on the individual level. Such as things like different colors/sounds/ on events, or whatever. Can anyone help me to understand how to make a button class or something that may already have these properties set, and then dynamically assign it to the thumbnails?
View 8 Replies
Feb 19, 2009
Im attempting to display xml generated text in 2(or more) dynamic textfields. One textfield under the thumbnail and 2 or more textfields next to the large image that loads.Ive posted an example where I put text in the dynamic text fields just to show location and how it should work:[URL]
I keep getting undefined errors. I've made minor adjustments from the original source: [URL]I think the error might be a typo. Ive pasted the AS and you can click the link for the zip if any want to take a crack at this issue: [URL]
----------------ERROR I KEEP GETTING----------------------------
1120: Access of undefined property arrayThumb.
1120: Access of undefined property arrayThumb.
1120: Access of undefined property thumbsDescription.
[code]....
View 1 Replies
Jul 20, 2009
I am new to Flash and am working on a web template I purchase online. I have a flash file called flash.fla I'm working with in Flash CS4 (trial). Of the five main menu buttons, I would like to redirect the 4th (the "videos" tab) to a youtube channel I've set up. I've located where the 4th button is in my .fla file. It's called B4. I double clicked on it, which opens it up in the timeline. There's 4 little objects in the timeline: b, b, t1, and t2.b is a frame, as is the 2nd b, and both t1 and t2 are documents. The only one I can open up in ActionScript is the 2nd B. I choose the GetURL from Script Assist, and put in my desired address, as followsI then close out ActionScript, and Export it as an Image File. I name it flash.swf to replace the .swf with the same name on my server. When I publish the new changes, the page just says Menu. If I click on that,
View 2 Replies
Nov 12, 2006
I need to change the guestbook link in the flash file on this page I have the fla file and changed it a year ago but can't remember now how I did it
View 1 Replies
Sep 24, 2009
I have an animation that loops and has different images come up with certain elements on the screen that remain the same throughout the movie. Depending on the image that is being displayed, the url of the link assigned to one of the constant elements changes with the code that I posted below.
The problem occurs when the movie loops because the URL of the constant is supposed to go back to the first link (just like everything else loops and starts at the beginning) but it remains as the last url that was declared.
Here are the three blocks of code I am using for the links, truth is the instance name of the button. These code snippets are arranged in their own "actions" layer on my timeline
First URL
truth.addEventListener(MouseEvent.CLICK, onMouseClick);
function onMouseClick(e:MouseEvent):void
{
var request:URLRequest = new URLRequest("http:../pages/calculate.html");
[Code].....
View 4 Replies
Feb 4, 2009
Mainly been making websites all these years, but in my last year at school i started to get interested in Flash Actionscript. I've been at home for over a year in 2008, unemployed. I got back to school in September 2008 but quit the education as it wasn't for me. Now I'm looking to get a job, but I need a showcase, so I'm building my portfolio at the moment.
I'm currently working on my portfolio which i wanted to make in Flash using XML generated content. I got as far as getting the content generated in my prototype. Now I'm trying to build the real thing. I currently got a scrollbar on the left which contains the thumbnails. I used the custom scrollbar from [URL] ([URL]). The content in it is generated with xml and actionscript though.
[Code]...
View 2 Replies
Mar 24, 2010
im trying to embed an swf file in facebook. To cut the story short, the swf im trying to embed is loaded fine but stops at preloader stage (0% of 1) and is not progessing as if it has missing link and couldnt locate something (the files struscture is one main swf file; index.swf loads other 5 swf),But, when i tried to load it up directly from browser, it works fine. I have been advised that changing the link path to absolute between the index.swf and 1.swf, 2.swf etc would solve the problem.
My questions will be:
-how do i change this path, because i couldnt seem to find any link that reflects the connection between those files?
-Is there any feature in flash that would be able to show this link rather than diggin up every symbol?
-If changing the path wouldnt solve the problem, what could be the reason this error is happening?.
View 1 Replies
Jun 15, 2007
im trying to do a dinamic link for my dinamic thumbs gallery. But i dont know how to propagate it. here is my function for my show next button PHP Code:
[Code]...
View 1 Replies
Sep 9, 2009
i am developing a piece for our home page that has three buttons below what's essentially a picture frame. the buttons work. it's the picture frame that doesn't.i have 4 ads that will rotate, each up for 250 frames. they fade out and in over each other. each has an instance name...ad1_link, ad2_link, etc. the idea is that as we have new products, etc, we'll swap in a new picture and remake the .swf.when i ran the code initially i got an 1120: access of undefined property error for pictures 2-4. no problems with the first one. after numerous attempts to find a solution, i decided to load all four movie clips at the same time, hiding them using the alpha property set to 0.i get no more errors, but now no matter which movie clip is visible, only the link to movie clip 4 (ad4_link) works. i need each clip to have it's own link, obviously, and for each to go away as the clip does.[code]
View 1 Replies
Jun 22, 2010
I am editing a Flash file and I need to change a mailto: link. When I edit that link to change the email address I get several instances of error #1056. why such an arbitrary change would break everything .
Edit: Here are the errors:
ReferenceError: Error #1056: Cannot create property baseBackground on com.***t.csg.view.CSGWebsite.
ReferenceError: Error #1056: Cannot create property backgroundHolder on com.***.csg.view.CSGWebsite.
ReferenceError: Error #1056: Cannot create property backgroundMergeHolder on com.***.csg.view.CSGWebsite[code].........
View 1 Replies
Jun 19, 2010
I'd like to make sort of gallery with previous/next buttons. And on each image you'd have circles/link over important parts of the image.So each image wold have these circles on different locations. Question: how can I make that dynamically? And that it's not to complicated for the editor of the site? One way would be to write in XML x and y positions.
View 0 Replies
Jul 20, 2009
I am new to Flash. I bought a template online a couple weeks ago, and for the most part have made all the changes to personalize the page. The page is for wedding videography, and came with a Videos section. However, I do not like the template video player, and would like to have the Videos link on the menu bar go straight to my youtube channel rather than to the flash player. Primarily all changes to the template have been made in a text.txt file, rather than the flash file itself. My question is, how could I change the link on the main page to route to my youtube channel? Here's what it looks like in the text file:
[Code]...
View 5 Replies
May 25, 2004
I have a few dynamic generated buttons, and I need on their action to change values in some dynamic generated textfields. the part of the code we're interested is this: CODE:
[Code]....
View 5 Replies
May 10, 2008
I�m currently doing work for a local cinema that wants session times to be displayed as .swf's on a few monitors in the foyer, but I�m having difficulties writing the script for it, here's the situation:The session times are generated daily as a text file by the ticketing software, it looks like this:
12 1 0950 101 0 330 0 M MADE OF HONOUR
1 1 1000 95 0 400 0 M WHAT HAPPENS IN
6 1 1000 95 0 154 0 M SMART PEOPLE
9 1 1010 92 0 300 0 PG MISS PETTIGREW
[code]...
Additional requirements are the times disappearing after the session has started as well as session times 13-16 being displayed as a separate .swf (first class seating)So i guess my main question is "can i dynamically load text from a multi-line txt file without editing the txt file to include variable assignment? ('content=' etc)" the txt file generated is intended for an led display and is apparently a Texas Instruments standard.
View 4 Replies
Dec 14, 2009
I have purchased a dynamic pageflip script from [URL].Has anyone used it before? I have setup all the pages and all is well, however, I am having trouble changing the very first left hand page.[URL]I have looked in both the .fla files and pagedate35.xml for an instance but had no look.
View 2 Replies
Jul 17, 2009
My .txt file is called my_text.txt
Inside I have:
myText1=This is test 1.
&myText2=This is test 2.
I tested it out with my dynamic text. If I made the variable myText1, it loaded the first line. If I made it myText2, it loaded the second line. All seemed to be fine.
I have a dynamic textbox, variable named names. I want to be able to change the variable in order to get it to load whichever line of text I want.
I tried:
names = myText1;
loadVariablesNum ("my_text.txt", 0);
But that's not working. I've tried playing around with it in various ways, like
names = eval(myText1);
and such, but nothing is effectively getting it to change. I've been trying to look it up and tried all the different ways people told other people to use, but it's not working for me.
Once I get this work I everything should fall into place easily.
View 3 Replies
Oct 4, 2010
I'm using Flash CS5, and dcepending on what the user does, I'm changing the font in a dynamic text box using
gFormula = "Na<font face='GG Superscript Sans'>+</font>"
txt_Names.htmlText = gFormula
The correct font appears on the computer where the font is installed but not on other computers, so I assume that it is a font embedding problem. I have embedded the font.
View 11 Replies
May 14, 2010
Okay, here is my code which I have in the frame actions:
Code:
char_xp1 = 1000;
char_level = 1;
[code]....
View 1 Replies
Sep 30, 2011
I have a 11 dynamic textbox's nested inside a movieclip called overmenu. I have a piece of code which is executed every so often which is as follows:
ActionScript Code:
for (i = 0; i < 12; i ++){
if (somevar[i] == 1){
[code].....
View 0 Replies
Oct 6, 2011
I have just come up with this idea of passing in strings into a textbox. The problem is having the height automatically adjust depending on how long the string is. So I have set width for my textbox, but I want the height to change if the string is long enough to wrap.
View 2 Replies
Feb 5, 2003
Got a problem with dynamic textfield length. I have a flash movie which is loading text from an external text file. I have drag the dynamic text field and make its width equal to the movie length (say:550pxl) so that it covers the entire stage. I have given motion tween to this dynamic single line text field. So, that whatever the content is there in the external textfile will scroll from left to right. Now for a single line it is ok, but if there are lot of content which would exceed one line length then what to do? So, I need a script so that, the length of the singleline-textfield would be dynamically changed with the textlength, the content of which is being updated from an external file using the LoadVariable syntax. I am using Flash5.
View 2 Replies
Jun 3, 2010
This is a problem I often come across but have never found an answer through extensive searching of the net.
I have a simple line
_root.txt_progressbar.text = "Parsing CSV file to grid.";
Yet this sometimes works and sometimes doesn't work. Seems to have issues if I put it in a function. It is like it doesn't have enough time to action this line. Is there some kind of delay I can use to wait for it to be done?
View 2 Replies
Nov 23, 2005
I have an array made up of nodes pulled from an XML file. Is it possible to change the text attributes (i.e. color or alpha) of one of these chunks of text.
So a very typical situation. XML is loaded into arrays. The text is loaded with a for loop into an empty movieslip. Looks like this:
text_obj.xmlNode1[n]
So lets say I want to do something to the color of array position 1. I set up a little function....
dummyButton.onPress = function(){
text_obj.xmlNode1[0].color = 0xff0000;
}
Seems like it should work, but doesn't Can I do this with dynamic text? Is there a workaround? I basically need to call out portions of the text during an animation. Think animated text highlighting.
View 2 Replies
Oct 13, 2009
able to link several buttons to a dynamic text box within the same mc on the same timeline, however when I try to move the dynamic text box to another mc, I am no longer able to link the buttons and populate the textbox.Textbox instance name is textbox.Button instance name is allegdistThe new movieclip is named page5It works within the same mc and timelineHere is the code I am using just for testing...How would I get the button to recognize the textbox in the new movie clip?
allegdist.addEventListener(MouseEvent.MOUSE_DOWN, click1);
function click1(event:MouseEvent):void{
textbox.text = "test"
[code]....
View 1 Replies
Jul 28, 2011
Program: Adobe Clash CS5.1Explanation:When you select a text field, under Options in the Properties there is the field "Link". Normally when you want to add a link you put the URL in a text box, then assign it a URL in the Properties...I am using a .xml file to pull up information, is there a code I can put in to the "Link" field in Properties to link to the URL that is entered by the .xml file?Example:The dynamic text field in flash displays the URL entered in the .xml, which is the URL for the Google homepage. The user clicks the link and it takes them to Google.
View 3 Replies
Mar 23, 2004
Is there a way to make the hand show up on a rollover of a dynamic text link. My dynamic text links fine and i can get it to work, but it wold be nice if the person rolled over the link for the hand to show up. Is that possible?
View 10 Replies
May 6, 2004
My swf file is stored on the web server in say /images/swf/my_swf.swf
The web page I want to link to is stored in the same folder /images/swf/My_Page.htm
So if my_swf.swf is embedded in say Original.htm page in the /images/swf/ directory.
When the visitor to Original.htm Clicks on the Button_btn they will be linked to the My_Page.htm with the following code.
Code:
_root.Button_btn.onPress = function () {
getURL("My_Page.htm", "mainFrame");
}
I have to store the My_Page.htm and the my_swf.swf where they are but the Original.htm is else where and has a number of other .swf's on it. So now when the Vistor click on the Button_btn the link tries to find the My_page.htm in the root of the Original.htm. How can I make the link in the my_swf.swf force the link to read from the root of the swf rather than the Original.htm?
View 5 Replies