The call of the dynamic text file javascript function
This is probably a fairly easy problem, but it seems to be confusing me. I have a JavaScript function just opens a new window, wrote a little html and captures an image to place in the window. The javascript is on the page my .swf into flash. It looks like this:< script type = "text/JavaScript" >
<!--
function newWindowLand (picWinLand) {}
bigpicWindowLand = window.open (", ' picWinLand ',' height = 500, width is 660, scrollbars = no, status = yes, resizable = no" ")
bigpicWindowLand.document.write ("image window test < html > < head > < title > < /titre > < body bgcolor = #FFFFFF leftmargin = 0 topmargin = 0 marginWidth = 0 marginheight = 0 > < Center > < img src =" + picWinLand + "height = 480 width = 640 border = 0 > < / html >" "")
bigpicWindowLand.document.close)
bigpicWindowLand.focus)
}
->
< /script >
I got this link in my html page:
(< a href="javascript:;newWindowLand('static_images/news/test_image.jpg')" > link < /a > test "
and it works very well. I then pasted this link in my dynamic text file that loads into my .swf, and nothing happens. I see the text "test" and it seems to be clickable, but if we click on it I get nothing. Am I missing something really obvious here? TIA...
I got mine to work. The problem was the ":;" in my anchor tag original-just need to be a colon by itself. I got it in fact that at the beginning, but my test showed that it works because of the new security with Flash 8 gibberish. As soon as I downloaded everything and lived test everything has worked well...
Tags: Adobe Animate
Similar Questions
-
Is it possible to convert the selected text in javascript lines?
Hi all
I put a word to indesign cs 5.5 file is almost in a single table, I need to separate the text of the actual tables, is it possible to convert the selected text in javascript lines?
If there is no way to do that, someone can help me to make a script to cut selected lines and place it in the right holders of the table pointer to make independent table and then convert to text?
Hey brother,
Simply select the rows or cells represent the lines and then run this Javascript code snippet:
for (var r = 0; r < app.selection.length; r++) { for (var t = 0; t < app.selection[r].rows.length; t++) { for (var u = 0; u < app.selection[r].rows[t].cells.length; u++) { for (var c = 0; c < app.selection[r].rows[t].cells[u].paragraphs.length; c++) { app.selection[r].rows[t].cells[u].paragraphs[0].move (LocationOptions.AFTER, app.selection[r].rows[t].parent.parent.storyOffset); if (c < app.selection[r].rows[t].cells[u].paragraphs.length - 1) app.selection[r].rows[t].parent.parent.storyOffset.contents += "\r"; } if (u < app.selection[r].rows[t].cells.length - 1) { app.selection[r].rows[t].parent.parent.storyOffset.contents += "\t"; } else { app.selection[r].rows[t].parent.parent.storyOffset.contents += "\r"; } } } } for (var r = 0; r < app.selection.length; r++) { for (var t = app.selection[r].rows.length - 1; t >= 0; t--) { app.selection[r].rows[t].remove (); } }
-
Value display trace in the dynamic text box
Hey just work on an exercise and I can't understand the code to display the value of the trace in a dynamic text box.
The following code generates exactly where I am at this time.
Import 12345678910111213import;
import flash.text.TextField;
Basic color picker (based pixel)
var myColourBitmapData:BitmapData = new BitmapData (500 400, false, 0xFFFFFF * Math.random ());
var myColourBitmapImage:Bitmap = new Bitmap (myColourBitmapData);
Add to list
addChild (myColourBitmapImage); Add to the scene
Get colors
var pixelValue:uint = myColourBitmapData.getPixel (85,62); color of the pixel at X, Y
displayed in the output window
trace (pixelValue.toString (16)); toString (16) converts uint in a number of Hexadecimel format
Here are a few screens, I want the values of trace output to appear next to the text in the dynamic text box
I'm not sure of how to call the pixelValue to my text box, any help would be appreciated!
Before or after the line that begins with «trace...» ' set dynamicTextFieldInstanceName.text = pixelValue.toString (16); Replace dynamicTextFieldInstanceName with the actual name that you gave to the dynamic textfield.
There is an error in your output window. It seems that you have not integrated a font in the dynamic textField.
-
Problems with the formatting of the dynamic text box
I'm under the questions with the help of HTML formatting for a dynamic text field. I know these are weird and I can't understand how to get the formatting right.
I have on my scene a dynamic text called «content_txt' inside a movie clip instance «content_mc» box When he enters the frame, I just broke down the "content_mc" of the alpha of 0 to 100 with a scenario animation. So that this works, I have to incorporate the police in my text field 'content_txt '. However, the only way I get get the HTML formatting to work is if I do not embed fonts.
The dynamic text field is configured to render as HTML. In my layer actions, I put the text:
this.content_mc.content_txt.htmlText = "<b>Hello world,</b> it is me again."
In summary:
1. If I do not embed fonts, the alpha fade does not work but HTML formatting doesn't.
2. If I incorporate police, the alpha fade works but HTML formatting does not work.
How to solve this? It's driving me crazy!
then you're not g-d instructions.
You should have two textfields. the one on the boards that you started with and that incorporates your normal font (not bold). and a slide that takes the same family of fonts with license "BOLD". Repeat the test.
-
Hello.
I lost my new-> the Notepad text file option when right clicking. How can I get it back? See my http://img863.imageshack.us/img863/6138/screenshotxp.gif screen shot as an example for this missing in action. :(
Thank you in advance. :)
Hello
· Will there be any changes made on the computer before the show?
You can run the fix it from the link below and check if this can help: diagnose and automatically repair Windows files and folders issues: http://support.microsoft.com/mats/windows_file_and_folder_diag/
-
How could I add together the numerical values in the dynamic text boxes?
I do an application and I currently have sections such as travel, rent, etc., where you can press one of two buttons to increase or decrease the total number (fresh) for this article. All totals are displayed in the dynamic text boxes - here is an example of the code for a section-
var FoodAndDrink:Number = 0;
button1_btn.addEventListener (MouseEvent.MOUSE_DOWN, Add);
function Add(e:MouseEvent):void {}
Repasetboissons += 1;
trace (FoodAndDrink);
FoodAndDrink_txt.text = "£" + FoodAndDrink;
}
button2_btn.addEventListener (MouseEvent.MOUSE_DOWN, subtraction);
function Subtract(e:MouseEvent):void {}
Repasetboissons-= 1;
If (repasetboissons < 0) {}
Repasetboissons = 0;
}
trace (FoodAndDrink);
FoodAndDrink_txt.text = "£" + FoodAndDrink;
Does anyone know how I would go all add up all the sections so that the total is in a box and changes based on the total entered in each section?
Thank you
then use:
import flash.events.MouseEvent;
var FoodAndDrink:Number = 0;
button1_btn.addEventListener (MouseEvent.MOUSE_DOWN, Add);
function Add(e:MouseEvent):void {}
Repasetboissons += 1;
trace (FoodAndDrink);
FoodAndDrink_txt.text = "£" + FoodAndDrink;
addAllF();
}
button2_btn.addEventListener (MouseEvent.MOUSE_DOWN, subtraction);
function Subtract(e:MouseEvent):void {}
Repasetboissons-= 1;
If (repasetboissons< 0)="">
Repasetboissons = 0;
}
trace (FoodAndDrink);
FoodAndDrink_txt.text = "£" + FoodAndDrink;
addAllF();
}
var/entertainment: Number = 0;
button3_btn.addEventListener (MouseEvent.MOUSE_DOWN, Add1);
function Add1(e:MouseEvent):void {}
Entertainment += 1;
trace (Entertainment);
Entertainment_txt. Text = "£" + Entertainment;
addAllF();
}
button4_btn.addEventListener (MouseEvent.MOUSE_DOWN, Subtract1);
function Subtract1(e:MouseEvent):void {}
Entertainment-= 1;
If (Entertainment< 0)="">
Entertainment = 0;
}
trace (Entertainment);
Entertainment_txt. Text = "£" + Entertainment;
addAllF();
}
Hotels var: Number = 0;
button5_btn.addEventListener (MouseEvent.MOUSE_DOWN, Add2);
function Add2(e:MouseEvent):void {}
Accommodation += 1;
trace (Accommodation);
Accommodation_txt. Text = "£" + accommodation;
addAllF();
}
button6_btn.addEventListener (MouseEvent.MOUSE_DOWN, Subtract2);
function Subtract2(e:MouseEvent):void {}
Accommodation-= 1;
If (accommodation< 0)="">
Accommodation = 0;
}
trace (Accommodation);
Accommodation_txt. Text = "£" + accommodation;
addAllF();
}
var travel: Number = 0;
button7_btn.addEventListener (MouseEvent.MOUSE_DOWN, Add3);
function Add3(e:MouseEvent):void {}
Travel += 1;
trace (Travel);
Travel_txt. Text = "£" + Travel;
addAllF();
}
button8_btn.addEventListener (MouseEvent.MOUSE_DOWN, Subtract3);
function Subtract3(e:MouseEvent):void {}
Travel-= 1;
If (trip< 0)="">
Travel = 0;
}
trace (Travel);
Travel_txt. Text = "£" + Travel;
addAllF();
}
var bills: Number = 0;
button9_btn.addEventListener (MouseEvent.MOUSE_DOWN, Add4);
function Add4(e:MouseEvent):void {}
Draft law += 1;
trace (Bills);
Bills_txt. Text = "£" + Bills.
addAllF();
}
button10_btn.addEventListener (MouseEvent.MOUSE_DOWN, Subtract4);
function Subtract4(e:MouseEvent):void {}
Projects of law-= 1;
If (bills< 0)="">
Projects of law = 0;
}
trace (Bills);
Bills_txt. Text = "£" + Bills.
addAllF();
}
function addAllF (): void {}
total_txt. Text = 'pound sign' +(FoodAndDrink+Bills+Travel+Accommodation+Entertainment);
}
-
Failed to retrieve the file. The dynamic application file is not in the specified location
Hi all
We face below mentioned question when creating content for our portal application web center.
I configured UCM correctly for my portal application by creating the connection of content in my application resources repository.
Our Center web version: 11.1.1.8
1st edition)
Content Server request failed Impossible to recover the file. The dynamic application file is not at the specified location ('/ l01/oracle/middleware/user_projects/domains/Webcntr_domain/ucm/cs/weblayout/resources/wcm/custom/sitestudio/contentwizard/webcenter/contentwizard.hcsp ').
That's what I did
In one of my portal page I added the content presenter by entering mode(ctrl+shift+e) contribution and in content configuration presenter window, when I clicked on the button "create Web content".
It take me to my window to center of oracle and survey web content the above error. Here's the URL that I have in my browser
Just to clarify, even I tried the same thing in the spaces of the web Center as well. I created a TestPortal, adding a page, and on this page when I add the content presenter and clicked on the "Create Web content" button, I get the same question.
Please suggest me what could be the reason.
Studio on the Site of 2nd edition) (11.1.1.8), I created all the required element definitions and definitions of the region and they are archived as well. And content of oracle web Center (UCM), I can learn all the definitions xml for these items. But if I want to change their definitions in the site studio, I do not get is it possible to see all the definitions element or definitions of region I created previously. is this kind of bug in 11.1.1.8? Since I was not facing this problem in 11.1.1.6.
so can anyone suggest something for the issues mentioned above.
Thank you
Nassim
Hello.
WebCenterConfigure component of the Complutense University of MADRID is responsible for the creation of the contentwizard.hcsp in the folder you specified. Please check if it is enabled, or you will need to reset it.
In any case no problem of migration, if WebCenterConfigure been activated before it doesn't have an impact, of the contentwizard.hcsp.
Kind regards.
-
Load the Image of the URL entered in the dynamic text box
I have an area of dynamic text (image_in) to receive a URL entry of an image to be loaded into a clip (peak) when you press a button (b_load).
I can't make it work, the code seems pretty simple:
var image_url:String = image_in.text;
b_load.addEventListener (MouseEvent.CLICK, Load_URL);
function Load_URL(event:MouseEvent):void
{
var i = new Loader();
i.Load (new URLRequest (image_url));
pic.addChild (i)
}
This code gives me: #2044 Error: Unhandled IOErrorEvent:. Text = Error #2035: URL not found.
This code works when I declare the var as a URL:
var image_url:String = " " http://website.com/image.jpg ";
What is the difference if I go http://website.com/image.jpg in the dynamic text field? What's wrong?
Any help would be appreciated, thanks!
You declare the image_url variable after the dynamic text? If this isn't the case, then the value of this variable will be an empty string. Set the variable inside the function declaration, and it should work as expected.
-
Add background color to the dynamic text boxes
Is this possible? Basically, I want to make the bottom of the dynamic text box have a color. How can I do this using AS3?
If your textfield reference name tf, use:
TF. Background = true;
tf.backgroundColor = 0xrrggbb;
-
Static text is much better than the dynamic text with the same font settings
Hello
I have exactly the same parameters for static and dynamic text, but the static text seems much sharper. Someone knows why?
Police: Trebuchet MS
Size: 30 pt
Anti-alias for readability
There is a slight difference, but I would not say much better. Incorporate you the dynamic text characters.
-
Determine the width of the dynamic text
I have a dynamic text on top box a moviclip of a rectangle. I need the width of the rectangle movieclip to adjust according to the width of the characters in the dynamic text box. Is it possible to determine the width of the characters in the dynamic text box? I can't understand this. Thanks for any help me direction in the right direction.
msg0. Width = msg0.textWidth;
-
Images in the dynamic text box?
I searched high and low trying to find how to insert images in the dynamic text boxes and there are hundreds of solutions. I can't make them work... still too novice.
Im trying to insert 1 image under a paragraph in a dynamic text box. Fact scroll and areas are defined for "render text as html" and "selectable".
I have put the following inside the text box code and just show you the code.
< img src = "images/graph.jpg" width = "194" height = "300" / > "
What I am doing wrong?
clbeech... thank you very much. Your help is very appreciated!
-
Align the text in the dynamic text using HTML box
Hello
I'm importing text to mysql through php, for an area of dynamic text in flash. I can't text from column 2 to align to the left. It comes out like this:
Column 1 column 2
James Kearns
Mary Peterson
Thomas Clark
The php code I have is:
print ("& dbpages =");
While ($row = {mysql_fetch_array ($result, MYSQL_ASSOC))}
Print "< table >. $row ["FirstName"]. "". "< tr > < td align = left > '." $row ['name']. "< table > < /tr > < / table >". " » \n » ;
}
The AS code is:
Where database_txt is the dynamic text box.
How can I align column 2?
Thank you
Paul
Thanks for your comments.
I used the tag to format text and solved the problem. In the PHP code I used the tab stops \t. It aligns data in Flash.
PHP code should now be:
Print ("& dbpages =");
While ($row = {mysql_fetch_array ($result, MYSQL_ASSOC))}
Print "\t".$row['first_name"]. '\t'.» $row ['name']. » \n » ;
}The Flash code is now:
var resultPages_LV:LoadVars = new LoadVars();
resultPages_LV.onLoad = function (success: Boolean) {}
If (success) {}
var myformat:TextFormat = new TextFormat();
myformat.tabStops = [20 140];
database_txt.htmlText = true;
database_txt.htmlText = resultPages_LV.dbpages;
database_txt.setTextFormat (myFormat);
} -
A message for the downloaded text files
I'm using the download / download the example of Mr. Kubicek who works very well. If the file is a jpg or xls or something it pulls a popup download but request if it
is a text .txt file, it downloads it, but gives no message, some users keep clicking on download and 30 copies of the file on the hard drive to get there.
If I could popup just a message to the downloaded text file then it would solve the problem.
Thank you
DougThis really looks like a browser configuration issue... the browser that you use can be configured to accept files of that MIME type (text/text?) without presenting an open/save dialog box.
What browser are you running that illustrates this behavior?
I would also test other browsers (IE, Firefox, Safari, etc.) and/or the same browser on machines replacing, to see if you can find a pattern of behavior. (In other words, is this just happening on your machine, or just IE browsers, or...).
-
Mapping of the 2 text files with conditions
Hello
Just trying to get my head around what would be the best solution that could be implemented in ODI with the next task I.
I have 2 text files, that the first file is in the format
AccCode | ChildCodeStart | ChildCodeFinish
1000-1099 B1000
1100-1199 B1001
The second text file
ChildCode | Alias
1000 depenses1
1001 depenses2
1100 available1
1101 disponibles2
The logic is now that I want to AccCode the first map file and match all the codes in the file two which are between ChildCodeStart and ChildCodeFinish
So my output
AccCode | ChildCode | Alias
B1000 1000 depenses1
B1000 1001 depenses2
B1001 1100 available1
B1001 1101 disponibles2
I don't know what would be the best route for this in ODI, I should load the files in the tables first or can make directly via an interface?
Thanks for any help
JohnHello
Yes, it is necessary to use a package... Sorry I forgot to mention. The package defines the 'stream of action '.
Good to hear it works...
Cezar Santos
Maybe you are looking for
-
Flash stuck on a site, do not charge not (still invisible) and has no error message
Hello I like listening to a radio station, but every time I open their website the player built on top is simply not visible at all. It should be just above the add element, but it does not load: http://i.imgur.com/e14UPsy.png The site uses flash, bu
-
This icon of photography: Please explain
So I'm working on a project in which I poster a photo background shematic and then display other graphics on top of it. And thanks to some of you guys, I was able to do. But now my problem is that I need to change the image. At present, the image is
-
BlackBerry smartphone how to stop MSG sent by BB, CCB for office, rec'd the BB
Hello I am a new user of BB - just got my curve about a month ago. I read a lot here - thanks for your help! Sorry if I don't know all the correct jargon - I'm still learning! I'll try to explain my question better than I can: I use my email addr
-
At the end of the download windows 8 I get the following message."Download unsuccessful".The download task has not completed.The new attempt at repair by block limit has been exceeded. The file is corrupted. » This is the second time, I downloaded an
-
is there a version of Microsoft Games - Minesweeper, solitaire to spider for windows 8
is there a version of Microsoft Games - Minesweeper, solitaire to spider for windows 8