Dine kommentarer

No problem. Glad to help.
It looks like your problem stems from your panel living outside of your pdf tag. If you want onpage to work, your panel needs to be a child of the pdf.
Are you certain that you have snapshotted your changes before saving and viewing in fusebox?

I just pulled the wire directly from the tutorial and into an App and it seems to work fine for me.

please leave a snippet of your code on this subject using < code > < /code > brackets around it.

Thank you.
This can be accomplished by using an assign tag to create a wire variable for the value of the alpha attribute in question.


<main>
<panel name="panel1" height="10" width="10" _alpha="1" onclickup="action1"></panel>
<panel name="abc" height="100" width="100" align="center" >
<panel name="def" height="50" width="50" vaign="center" alpha="1"></panel>
</panel>
</main>
<actions>
<action name="action1">
<assign property="var:def-alpha" value="_alpha"/>
<if lhs="[var:def-alpha]" operator="e" rhs="1">
<play anim="action2"/>
</if>


Since the alpha attribute is not currently a supported object property for a panel, you will want to create an object variable (_alpha) and give it the same value as your alpha state for def. If an action changes your alpha value, you also need to create an assign tag that will change your _alpha as well.

Then when you want to reference that [var:def-alpha] for example, you can run and if statement to perform an action based on whether or not the var is set to a 1 or not 1.
by intercept you mean do not allow it to work for the user? I am afraid I don't understand.
Are you thinking about implementing the solution of making these links as annotations in preview? If so, then the tutorial on the web link in "action a web page" wouldn't be the most effective approach because you would have to create your own click panels on top of every link.

That would look like this:

<wire>
<main>
<pdf name="pdf" alias="PDF" source="sample.pdf" height="100%" width="100%" spreads="yes" covertile="no" tile="yes">
<panel name="link1" width="200" height="20" xpos="85" ypos="907" onclickup="weblink" onpage="1" _url="http://www.apple.com"></panel>
<panel name="link2" width="100" height="20" xpos="185" ypos="233" onclickup="weblink" onpage="2" _url="http://www.cnn.com"></panel>
<panel name="link3" width="300" height="20" xpos="285" ypos="90" onclickup="weblink" onpage="3" _url="http://www.hbo.com"></panel>
<panel name="link4" width="400" height="20" xpos="385" ypos="47" onclickup="weblink" onpage="4" _url="http://www.amazon.com"></panel>
<panel name="link5" width="200" height="20" xpos="385" ypos="947" onclickup="weblink" onpage="5" _url="http://www.google.com"></panel>
</pdf>
<panel name="web" alias="WEB" height="100%" width="100%" ypos="0" hidden="yes">
<toolbar name="toolbar" height="5%" width="100%" align="left" valign="top">
<panel name="button" width="10%" height="80%" align="left" margin="10" valign="center" background="#888888" cornerradius="5" onclickup="weblink-return">
<text name="back" width="50%" height="50%" color="#000000" font="" size="12" align="center" valign="center" text="Back"></text>
</panel>
</toolbar>
<web name="web-panel" alias="WEBPANEL" width="100%" height="95%" valign="bottom" url="://blank"></web>
</panel>

</main>
<actions>
<action name="page">
<scroll page="_page"/>
</action>
<action name="weblink">
<replace type="flipright" target="PDF" replacement="WEB" time="1"/>
<load url="_url" target="WEBPANEL"/>
</action>
<action name="weblink-return">
<replace type="flipleft" target="WEB" replacement="PDF" time="1"/>
<load url="://blank" target="WEBPANEL"/>
</action>

</actions>
</wire>



If you use the solution in this topic, your code would look like this when paired with a PDF that has been annotated. The classes will find the xpos/ypos and links:

<wire>
<classes>
<class name="weblink">
<panel name="[param:objname]" width="[param:w]" height="[param:h]" xpos="[param:x]" ypos="[param:y]" onclickup="weblink" _url="[param:url]" ></panel>
</class>
<class name="pagelink">
<panel name="[param:objname]" width="[param:w]" height="[param:h]" xpos="[param:x]" ypos="[param:y]" onclickup="scroll-to" clicktarget="MAG" _page="[param:topage]" ></panel>
</class>
</classes>
<main>
<pdf name="mag" alias="MAG" source="pdfs/sample.pdf" height="100%" width="100%" align="left" valign="top" spreads="yes" covertile="yes" weblinkclass="weblink" pagelinkclass="pagelink"></pdf>
<panel name="web" alias="WEB" height="100%" width="100%" ypos="0" hidden="yes">
<toolbar name="toolbar" height="5%" width="100%" align="left" valign="top">
<panel name="button" width="10%" height="80%" align="left" margin="10" valign="center" background="#888888" cornerradius="5" onclickup="weblink-return">
<text name="back" width="50%" height="50%" color="#000000" font="" size="12" align="center" valign="center" text="Back"></text>
</panel>
</toolbar>
<web name="web-panel" alias="WEBPANEL" width="100%" height="95%" valign="bottom" url="://blank"></web>
</panel>
</main>
<actions>
<action name="weblink">
<alpha value="0" time="0" target="UP"/>
<replace type="flipright" target="MAG" replacement="WEB" time="1"/>
<load url="_url" target="WEBPANEL" />
</action>
<action name="weblink-return">
<alpha value="1" time="0" target="UP"/>
<alpha value="0" target="../upbutton"/>
<replace type="flipleft" target="WEB" replacement="MAG" time="1"/>
<load url="://blank" target="WEBPANEL"/>
</action>
<action name="scroll-to">
<scroll page="_page" target="MAG"/>
</action>
</actions>
</wire>
Well the documentation actually didn't have this, so I took the liberty of updating it.

On a text tag, you can use an attribute called "maxlength" to set the maximum characters to display. This must be used in tandem with an attribute called "endcap" this will display a cap on the end, usually a "..." is appropriate.
I have noticed this to be an issue in other Apps outside of RareWire, so it might be an issue Apple will resolve.
We are still working on correcting potential issues with the upcoming release of iOS 6. Thanks for letting us know! I will have someone look into it.
Currently in the Studio there is an option within the App Settings to show or hide the status bar. At the moment it defaults to "Status Bar is Hidden" and can't be changed.

We will activate this functionality at some point in the future. Let us know if this becomes a great need. We need to do some work to enable the Splash screens to tell the difference.

Kundesupport af UserEcho