Link to frame label instead of frame #?
How do I modify the following code to link to a label instead
of a frame #?
Btn1.addEventListener(MouseEvent.CLICK, buttonClick1);
function buttonClick1(event:MouseEvent):void{
gotoAndStop(30);
Thanks!!!
1. Is there a reason why I would use the second segment of
code vs. the
first one?
2. It seems to me that it would make sense to always link to
frame
labels vs. frame numbers in case you choose to move items
around in your
timeline. Is there any reason to not use frame labels vs.
frame numbers?
Thanks!!!!
kglad wrote:
> no. if the frame label is "contact" you would use:
>
>
>
> Btn1.addEventListener(MouseEvent.CLICK, buttonClick1);
> function buttonClick1(event:MouseEvent):void{
> gotoAndStop("contact");
> };
>
> // or
>
> var frameLabel:String = "contact";
>
> Btn1.addEventListener(MouseEvent.CLICK, buttonClick1);
> function buttonClick1(event:MouseEvent):void{
> gotoAndStop(frameLabel);
> };
>
Similar Messages
-
XML configuration file to link to frames in Flash - As2.0
How can I set the url or link attribute from the XML configuration file to link to frames in my movie instead opening a HTML page? I am using Actionscript 2.0
Thank you.What type of file is using this xml data? If it is being read by the AS2 file, then your data should resemble either frame labels or frame numbers.
-
How to link text frames in Pages 5.2?
How to link text frames in Pages 5.2?
The correct term in Pages is Text Boxes, and true linking is not implemented in v5.2. You can Unite, Intersect, Subtract, and Exclude multiple Text Boxes via the Arrange panel. These attributes only appear when two or more Text Boxes are selected. Also, on the Arrange menu, you will need Object Placement set to Move with Text, and the Text Wrap set to None for more accurate positioning.
In the following example, there was initially a Text Box with overflowing text that was duplicated. With both Text Boxes selected and aligned, I could then use the Unite feature from the Arrange panel. This allowed the text to flow into the second box. Selecting text in one box and dragging upwards continues the text selection between both boxes. Hoefler italic applied in one box is applied to both. Appropriately placed, another trip to the Arrange panel to enable Text Wrap around and text fit adjustments. -
Selection text frame in linked text frame remove
I chose in the text frame the linked text frames
get out of text and I want to delete a text frame
Is it possible that a command letter
same thing selecting the external canOk. Try now,
var doc = app.activeDocument;
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "~a";
var found = app.selection[0].findGrep();
for(var i =found.length-1;i>=0;i--)
var ip = found[i].insertionPoints[0];
if(found[i].allPageItems[0] instanceof TextFrame)
var cont = found[i].allPageItems[0].texts[0].duplicate(LocationOptions.AFTER,ip);
found[i].remove();
Regards,
Chinna -
Dynamic Text box with linking to frames
I have a problem. I've tried everything I can think of and what I have Googled, but nothing has helped. I have a scrolling dynamic text box and I need some words in that text box to link to frames, like buttons (Not a URL). This is the file and the frame I'm on is "conflictNorthernPlains" https://dl.dropbox.com/u/72608572/civilWarEra7.zip
Thanksuse:
var tf:TextField = new TextField();
addChild(tf);
tf.htmlText = "<a href='event:frame1'>link to frame1</a><br/>";
tf.htmlText += "<a href='event:frame2'>link to frame2</a><br/>";
tf.addEventListener(TextEvent.LINK, tfF);
function tfF(e:TextEvent):void{
gotoAndStop(e.text);
p.s. please mark helpful/correct responses, if there are any. -
Lining up text in linking text frames
I've inherited a document design from an agency that my client sometimes uses - the client can't get their hands on the original files so I've recreated from a PDF. I can't replicate how they make text line up across a page through linking text frames.
The majority of their text frames have VertJustification set to Bottom, so I'm setting that as Default for my text frames. But when I put dummy text in to my frames, I get very bad alignment of lines - especially at the top - when there is a different number of paras in each frame.
Design agency PDF http://dl.dropbox.com/u/4460087/designagencytext.png
My InDesign setup http://dl.dropbox.com/u/4460087/mytextsetup.png
Current text
9pt text
14pt leading
2mm (5.9pt) space after each para
Given their text set up - especially the 2mm space after each para - they must be doing some adjustment and balancing after the text is added. I'm just not sure how.
Any clues??Assumption simply based on the fact that they seem to line up more often at the bottom through 80 pages of this stuff rather than at the top.
But I think you've hit the nail on the head for me. Setting my frames VertJust to 'Justify' helps me do replicate their style quite easily.
And agreed, I also think the visual distraction of lines not lining up across columns is worse than having columns line up at the bottom.
Thanks for the help. -
Dear All,
My Request:
1. Is it possible to select all linked text frames of my selecting text frame (Please refer attachment)
2. Suppose If we select all text frames, is it possible to fix height for all text frames like as 3p or 4p etc....
Trying script for select all linked text frames:
if (app.selection[0].nextTextFrame == null)
if (app.selection[0].previousTextFrame != null)
alert("pass")
app.select(previousTextFrame.parent) && app.select(nextTextFrame.parent) && app.select(startTextFrame.parent)
Could you anyone give solution for my request.
Thanks in advance
BeginnerHi All,
If I select any text frame, I need to select all linked text frames of selecting text frame.
Please can anyone help me...
Please refer the above screenshot for your reference.
Trying script:
if (app.selection[0].nextTextFrame == null)
if (app.selection[0].previousTextFrame != null)
myParagraphs = app.selection[0].parentStory.paragraphs;
for (j=0;j<myParagraphs.length;j++)
myParentTF = myParagraphs[j].parentTextFrames[0].contents
alert(myParentTF)
Output i needed:
Thanks in advance
BEGINNER -
Remove All Missing Links with frames
How can I make a script to remove all missing links with frames In indesign?
var doc = app.activeDocument;
var links = doc.links;
for (var i = links.length-1; i >= 0; i--) {
if (links[i].status == LinkStatus.LINK_MISSING) {
try {
links[i].parent.remove();
var image = link.parent;
var frame = image.parent;
frame.remove();
counter++;
catch (err) {
$.writeln(i + " - " + err);
I try this script, but still remain a frame, what's wrong with that?@Harvey – in priciple nothing's wrong with that.
But you need only to remove the parent.parent of the found link.
You could also resolve the object that is behind parent.parent to make sure it will work:
var myContainerToRemove = links[i].parent.parent.getElements()[0];
myContainerToRemove.remove();
No container, no image, no link ;-)
Of course that will leave a container frame behind, if the container of the graphic is itself nested into another object.
This could be a Texts object (together with a text frame) or a SplineObject like a Rectangle, Oval, Polygon, a Button as well as a State inside an MSO…
A remnant could also be a Group object containing only one page item…
Depends on how the page items are used and the layout is constructed.
Uwe -
Configuring CE-PE link on Frame Relay over ATM
Hi!
Need you guys expert opinion on how to configure configuring CE-PE link on Frame Relay over ATM. I am stump by this one because I never done it before. The CE is a Cisco 7206 with ATM PA and the parameters given to us is DLCI number in x/y format...isn't that the format for PVC. When asked, my SP contact says that it is indeed FR over ATM. Any of you guys who have experience to guide on this or point me in the right direction is most welcome. Thanks
Rgds
HelmeHello Helme,
ask your provider if they are doing FR to ATM service interworking.
In that case one side is configured for Frame-Relay and the other side for ATM
Service interworking is done by provider.
Verify that you have the same MTU on both sides and configure following ISP specifications
ATM uses two numbers to identify a PVC
int atm 4/0
no ip address
no shut
int atm 4/0.1 point-to-point
mtu 1500
ip address x.x.x.1 255.255.255.252
pvc x/y
enc aal5snap
protocol ip x.x.x.2 broadcast
this should be enough to have it working
on the other side configure or have a point-to-point subif configured on FR
see this example
http://www.cisco.com/en/US/tech/tk39/tk53/technologies_configuration_example09186a00801747e3.shtml
Hope to help
Giuseppe -
Jump To Slide Label Instead of Number
Flash CS4
AS2
Captivate 4
Okay - let me scratch your brain here for a second.
I have a custom navigation menu created in Flash - that I've put into Captivate...
I know that I can use this code to jump to a slide number within captivate
btn7_btn.onRelease = function()
_root.cpCmndGotoSlide="23";
_root.rdcmndResume=1;
That works fine and all... I was just wondering, if there was anyway I could jump to a slide label instead of the number.
I'm still editing the project, adding, and subtracting slides - in doing so I have to continue to change that slide number and re-import the flash file into captivate. We give the slides labels in Captivate - is there not any way of making use of this??
I've tried thinking of using some sort of action within Flash/Captivate to associate the slide label, with a variable, or something - and then cross referencing it back into Flash - maybe using an array of some sort in flash to parse the slide names into slide numbers...
any help anyone?Well. I would think that but it doesn't work at all when working from
flash
Sent from my iPhone -
Error 1009: Buttons Linking to Frame Labels?
Hello here is my code for my buttons for my rather simple Flash site. I have 5 "frame labels" each label contains a set of frames representing a page. Yet when I test the site with the action script below it freezes on the first frame and gives the message
Error #1009: Cannot access a property or method of a null object reference. at SelfPromoSite_fla::MainTimeline/frame1()
This is my code below for my main navigation buttons
Home_Btn.addEventListener(MouseEvent.MOUSE_DOWN, goHome);
function goHome(event:MouseEvent):void {
gotoAndPlay("Home");
About_Btn.addEventListener(MouseEvent.MOUSE_DOWN, goAbout);
function goAbout(event:MouseEvent):void {
gotoAndPlay("About");
Resume_Btn.addEventListener(MouseEvent.MOUSE_DOWN, goResume);
function goResume(event:MouseEvent):void {
gotoAndPlay("Resume");
Work_Btn.addEventListener(MouseEvent.MOUSE_DOWN, goWork);
function goWork(event:MouseEvent):void {
gotoAndPlay("Work");
Contact_Btn.addEventListener(MouseEvent.MOUSE_DOWN, goContact);
function goContact(event:MouseEvent):void {
gotoAndPlay("Contact");
Also on the "Work" "page" "set of frames" I have buttons to advance between frames.
button1.addEventListener(MouseEvent.MOUSE_DOWN, goBack);
function goBack(event:MouseEvent):void
prevFrame();
button2.addEventListener(MouseEvent.MOUSE_DOWN, goForward);
function goForward(event:MouseEvent):void
nextFrame();
I've tried putting this action script on the frame where the "Work" label starts and the actual buttons for advancing back and forth are located. I've also tried putting the action script for these buttons on the first frame with the remainder of the button action script above, it does not work. Also when I remove the 2nd set of actionscript altogether the site still freezes on the first frame.The 1009 error indicates that one of the objects being targeted by your code is out of scope. This could mean that the object....
- is declared but not instantiated
- doesn't have an instance name (or the instance name is mispelled)
- does not exist in the frame where that code is trying to talk to it
- is animated into place but is not assigned instance names in every keyframe for it
- is one of two or more consecutive keyframes of the same objects with no name assigned in the preceding frame(s).
If you go into your Publish Settings Flash section and select the option to Permit debugging, your error message should have a line number following the frame number which will help you isolate which object is involved. -
Linking text frames with script label array in vbs
Here's what I'm using
TextFrameStr = "name1,name2,name3,name4"
TextFrameArray = split(TextFrameStr, ",")
'On Error Resume Next
For i = 0 to Ubound(TextFrameArray)
myDocument.TextFrames.item(TextFrameArray(i)).nextTextFrame = myDocument.TextFrames.item(TextFrameArray(i + 1))
Next
I keep getting the the 'Requested member does not exist' message.
itemByName seems to not work as well.
Its probably someting quite silly!
Thanks for help inadvanceStill not working unfortunately. I have added the names into the layers palatte.
The code below produces
"Object doesn't support this property or method"
Set myInDesignServer = CreateObject("InDesignServer.Application.CS5")
Set myDocument = myInDesignServer.Open("C:\test.indd")
TextFrameStr = "name1,name2,name3,name4"
TextFrameArray = split(TextFrameStr, ",")
'On Error Resume Next
For i = 0 to Ubound(TextFrameArray) - 1
myDocument.pageItems.itemByName(TextFrameArray(i)).nextTextFrame = myDocument.pageItems.itemByName(TextFrameArray(i + 1))
Next
myDocument.Save "C:\test.indd"
myDocument.Close
many thanks in adavnce for any help -
Link to frame isnt working?
I'm trying to simply link to another frame. In the file, when the down arrow is pressed in the 2nd layer (frame 21) I want it to play starting at frame 30, labeled "to 3". I've tried this code:
on(press) {
gotoAndPlay("to3");
but it doesnt seem to work, and thats quite confusing, since this same code worked in the down arrow in frame 1, and when clicked, the clip at frame 10 began playing. I dont know what is wrong. Please suggest possible problems, and look at the original file. How do I attach the file, I cant find anything that allows me to do so...your frame label "to 3" is not the same as the gotoAndPlay() argument "to3".
in addition, you shouldn't have code attached to objects and you should not use the goto functions, use the goto methods:
var tl:MovieClip=this;
yourbtn.onPress=function(){
tl.gotoAndPlay("to 3"); // if that's the correct label in the timeline that contains this code. -
Home page link in Frame Driver
People,
i have a piece of code in my frame driver which navigates through pages and has a 'Home Page' link.
select 'Brand : Delivery Fulfilment Analysis' brand,
'http://rs2020-1-3:7778/servlet/page?_pageid=159&_dad=portal30&_schema=PORTAL30' url
from dual
union
select 'Brand : Intake Margin Analysis' brand,
'http://rs2020-1-3:7778/servlet/page?_pageid=161&_dad=portal30&_schema=PORTAL30' url
from dual
union
select chr(13),' ' from dual union select 'Brand : Top Level Report' brand,
'http://rs2020-1-3:7778/servlet/page?_pageid=143&_dad=portal30&_schema=PORTAL30' url
from dual
union
select 'Exit' brand, 'http://rs2020-1-3:7778/servlet/discoservlet?_act=Exit' url
from dual
union
select 'Home' brand, 'http://rs2020-1-3:7778/servlet/page?_pageid=101,109&_dad=portal30&_schema=PORTAL30' url
from dual
This code basically gives the users a number of hyper links to click on and navigate through different pages.
When the 'Home Page' link is selected, the frame driver displays the home page in the target window, instead of the entire HTML page.
How can i get the Home Page link to display the page as full screen??
Thanks, Matt.
nullThanks Michael,
I also found another way of doing this through a dynamic page with JavaScript.
You can specify the Frame driving URL link to point to a dynamic page which has the following code...
<-HTML>
<-HEAD>
<-TITLE>Portal Home</TITLE>
<-/HEAD>
<-BODY>
<-SCRIPT LANGUAGE="JavaScript">
window.parent.location.href = "http://rs2020-1-3:7778/pls/portal30/PORTAL30.home";
<-/script>
<-/BODY>
<-/HTML>
This closes off the frame and ensure the "home" page is displayed in full.
Thanks for your help.... Matt. -
RoboHelp 9 gives an out of memory error and crashes when I try to import or link a Frame 10 file or
I have Tech Suite 3. If I start a new RoboHelp project and try to import or link Frame files, RoboHelp tries for a while, then I get an Out of Memory error and the program crashes.
I opened one of the sample projects and was able to link to one of my frame files without any problem, so it seems to be an issue with creating something new.
Any suggestions?It happens when I create a new project and then try to import or link frame docs to make up the content. It starts scanning, then crashes. I did get it to the conversion setting page once, but no further.
It does not happen if I open one of the supplied example projects and link a file. But then it doesn't let me choose, during import, any style mapping. And I can't delete the sample project fold
Twice now it has told me when I tried to import (not link, but import) that my .fm file could not be opened, and told me to verify that Frame is installed (it is) and that the file is a valid frame file (it is).
The docs and project are in separate folders on my C: drive.
Maybe you are looking for
-
READ REPORT for specific version
I'm using function module RPY_PROGRAM_READ that calls READ REPORT. However I'd like to get the code for a previous version. The READ REPORT is very limited with it's options and I can't find a function module (RFC enabled) that does this. Any suggest
-
How to center in a Scene?
I'm liking the layouts, but I haven't figured out how to center something in a Scene. It doesn't take LayoutInfo, for example. What's a good way to center a Component (a VBox in this case) in a Scene? Thanks, Dave
-
adding pages to web site......links work in iWeb, but inactive when viewing published pages........on iWeb 9.0.3........any suggestions would be greatly appreciated.......thank you
-
Unable to install Abode Reader 9 on PC using window 7
Following several trials to download and install from Abode reader from web site, I can't succeed. No folder nor shortcut created. Michel
-
I have loaded some .mp4 contents to a iTunesU's course page. I only see "Get Tracks" button. How can I have the "Subscribe" button appear in the page? How can I have multiple columns in the Welcome page like Duke University's?