ClickTag banner issues in Flash CS5 - actionscript-2

I've created some animated as well as static banners in Flash CS5 and I'd like to apply clickTag ActionScript 2.0 code to them. However, I only found tutorials where over all the existing layers, you create a rectangle using the Rectangle Primitive Tool, set the border, fill, and opacity to 0 and then apply the code and export the movie. When I create the rectangle, there is no setting for opacity, and when I set no border and no fill, the rectangle disappears and the dark dot in the timeline becomes empty so I can't click on the rectangle in order to convert it into a symbol.
I would really appreciate any advice on this!

Create your rectangle using 'Rectangle Primitive' tool shapes menu instead of the regular Rectangle tool.
select your rectangle by a single click.
From the properties panel select the bucket symbol (the one used to control the fill color) and you will find a setting 'alpha' for setting the transparency.
change the alpha value to 0. after that remove the stroke.
select your rectangle, from the top menu : Modify > Convert to symbol. give it a name and select 'button' from the dropdown. press ok.
now select the button you just created, open the actions panel and paste the following code :
on (release) {
if (clickTAG.substr(0, 5) == "http:")
{
getURL(clickTAG, "_blank");
}
}

Related

Colors[4] not showing color selection on Front Panel

I am trying to set the color of an indicator to different colors based on different values, like 1 = red, 2 = blue etc. Using guidance from a Youtube video (accessible using this link: https://www.youtube.com/watch?v=czUmPQmKmGU), I have created a Colors[4] control for the indicator I have after changing it to the "write" function.
The Problem on the front panel is that I am getting a control with numbers instead of a color box where I can select the colors to show based on the value. This was the control I got instead.
This is the control I am trying to achieve (below):
Is there any way that I can get the color box on my control instead of the number controls? I am not sure if it can be changed through a control on the front panel or something but what I have tried so far keeps leading me back to this problem.
Any advice is much appreciated
A color box control is just a U32 number (three bytes for RGB and one which is always 0), which is why that's what you get.
There is a right click plugin which adds a replace with color box option directly to the right click menu of unsigned 32 bit numbers, but I don't remember if it ships with LV or not.
If you don't have that, you can always just right click the indicator inside the cluster, select replace and navigate the palettes to find the color box. You can also copy a color box and then select the indicator and paste, which replaces the selected control.
The color[4] is actually an array of 4 colors (UInt32 as Yair said), that define 2 color gradients, one for the 'Off' state, and the other for the 'On' State of the control.
If you want to set the control's color, you will have to define all 4 of them.

Blender boolean subtraction not rendering in Cura 3d

I am trying to make a simple 3d object to print out on my 3d printer using Blender.
I have succeeded in creating what I want in Blender, which is essentially a platform 100mm x 120mm x 15mm with an inset trough of 10mm depth this leaving a 10mm border around the trough.
Looks spot on in Blender.
I have removed the inset object and checked that it looks ok.
Then I export it to an STL and open it in Cura 3D and I just get a solid platform, it's like it has ignored the boolean subtraction.
What am I doing wrong? Edit : Apply Modifiers is ticked.
In the boolean modifier tab you should be able to see a little down arrow to the left of the "X" button above difference (see first picture). When you click the drop down button, you should see a button that says apply(see second picture. When you hit apply it will apply the modifier and you will see the boolean modifier disappear and be good to remove the other object used in the modifier (pictures 3 & 4)
Picture of the location of the drop down button
Picture of the drop down menu
Modifier Goes away
Finished product with Difference modifier

Inserting images automatically on slides referencing model #? MICROSOFT POWERPOINT

I have about 100 slides here on powerpoint that look like this:
Slide example screenshot
I need to insert an image into the text box on each slide with the sizing of
height = 5, width = 3.64
and positioning of:
Horizontal = 6" / Vertical = 1.2" (Both from top left corner)
For good measure, here are all of the image format settings:
Image format settings screenshot
The image files are the same as the model number, such as MHS1306.jpg.
Is there any way to use a macro to automatically reference the model number, insert the corresponding image, and then resize it to the correct size?
All of the images are in the same folder.
The image just needs to be in that position, the text box isn't important, just shows where the image should go.
I am very new to VBA and scripts, and basically know nothing about it yet, so I would appreciate any help.
Thanks.

Extend non-client area on form with custom drawn titlebar

I used the awesome tutorial at http://www.codeproject.com/Articles/44235/Painting-Vista-s-Aero-NonClientArea-in-VB-NET to make my form have custom non-client area controls. It now looks like so:
http://i.imgur.com/5A1GtF7.jpg
I would like to make it so that the non-client area extends all the way down to the TabControl page start, so the logo is completely in the non-client area and there is no grey at the top of the window.
Find this line in the form's code:
dwmMargins.cyTopHeight = nccsp.rect2.Top - nccsp.rect1.Top
Now just add however many pixels you need:
dwmMargins.cyTopHeight = nccsp.rect2.Top - nccsp.rect1.Top + x
Since you can use DLL's, I found this:
Download this DLL: http://www.mediafire.com/download/jmvjiu2wty4/rtaGlassEffectsLib.dll
Then create an instance of rtaGlassEffect
Dim glass As New rtaGlassEffectsLib.rtaGlassEffect
Finally put this in your form's Load event handler:
glass.TopBarSize = yourSize
glass.ShowEffect(Me)

ReportViewer Change Control color

I'm looking to change a control's color in my report.RDLC. My reports are all generated by the ReportViewer control on a form called "rv".
The selected rectangle below is the one I'm looking to change colors.
It has the following properties:
How do I programmatically change the Background color of the rectangle?
I figured it out after a few hours. On the control of which you want to change background colors, select the "Expression" link from the dropdown.
Afterwards you enter in the code such as:
=iif(Fields!State.Value = "Approved", "LightYellow", iif(Fields!State.Value = "Analysis", "LightGreen", "Transparent"))
This will set the color of my textbox to light yellow if it's state is "Approved", or light green if it is in it's analysis stage. If none of those are true, it just stays transparent (default).
*Note: My "State" field was added in my dataset so I was able to use it in the expression.